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 longserialVersionUID'final'Exception Convenience FieldsModifier and Type Field longfileSize
-
Constructor Summary
Constructors Constructor FileSizeException(long fileSize)FileSizeException(String message, long fileSize)
-
-
-
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 theSerializableImplementation 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.Exceptionandjava.lang.Errorclasses 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
Thisfinalfield will contain the size of the file which generated this errror.- Code:
- Exact Field Declaration Expression:
public final long fileSize;
-
-
Constructor Detail
-
FileSizeException
public FileSizeException(long fileSize)
Constructs aFileSizeExceptionwith no detail message.- Parameters:
fileSize- The size of the file that generated this error.
-
FileSizeException
public FileSizeException(java.lang.String message, long fileSize)
Constructs anFileSizeExceptionwith the specified detail message.- Parameters:
message- the detail message.fileSize- The size of the file that generated this error.
-
-