Package Torello.Java

Class 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


    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      static long serialVersionUID
       
      'final' Exception Convenience Fields
      Modifier and Type Field
      long fileSize
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        🡇    
        public static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable 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's java.lang.Exception and java.lang.Error classes implement the Serializable 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
        This final field 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 a FileSizeException 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 an FileSizeException with the specified detail message.
        Parameters:
        message - the detail message.
        fileSize - The size of the file that generated this error.