1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | package Torello.Java;
/**
* May be used to indicate that a data-file is too large to fit into an in-memory
* data-structure; or too big to adhere to any kind of model-constraints.
*/
public class FileSizeException extends RuntimeException
{
/** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */
public static final long serialVersionUID = 1;
/** This {@code final} field will contain the size of the file which generated this errror. */
public final long fileSize;
/**
* Constructs a {@code FileSizeException} with no detail message.
* @param fileSize The size of the file that generated this error.
*/
public FileSizeException(long fileSize)
{
super();
this.fileSize = fileSize;
}
/**
* Constructs an {@code FileSizeException} with the specified detail message.
* @param message the detail message.
* @param fileSize The size of the file that generated this error.
*/
public FileSizeException(String message, long fileSize)
{
super(message);
this.fileSize = fileSize;
}
}
|