Package Torello.Java
Class FileSizeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- Torello.Java.FileSizeException
-
- All Implemented Interfaces:
java.io.Serializable
public class FileSizeException extends java.lang.RuntimeException
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.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Java/FileSizeException.java
- Open New Browser-Tab: Torello/Java/FileSizeException.java
File Size: 1,100 Bytes Line Count: 35 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field static long
serialVersionUID
'final'
Exception Convenience FieldsModifier and Type Field long
fileSize
-
Constructor Summary
Constructors Constructor Description FileSizeException(long fileSize)
Constructs aFileSizeException
with no detail message.FileSizeException(String message, long fileSize)
Constructs anFileSizeException
with the specified detail message.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable
. Using theSerializable
Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
Note that Java'sjava.lang.Exception
andjava.lang.Error
classes implement theSerializable interface
, and a warning-free build expects this field be defined here.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final long serialVersionUID = 1;
-
fileSize
public final long fileSize
Thisfinal
field will contain the size of the file which generated this errror.
-
-
Constructor Detail
-
FileSizeException
public FileSizeException(long fileSize)
Constructs aFileSizeException
with no detail message.- Parameters:
fileSize
- The size of the file that generated this error.
-
FileSizeException
public FileSizeException(java.lang.String message, long fileSize)
Constructs anFileSizeException
with the specified detail message.- Parameters:
message
- the detail message.fileSize
- The size of the file that generated this error.
-
-