001package Torello.Java; 002 003/** 004 * May be used to indicate that a data-file is too large to fit into an in-memory 005 * data-structure; or too big to adhere to any kind of model-constraints. 006 */ 007public class FileSizeException extends RuntimeException 008{ 009 /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */ 010 public static final long serialVersionUID = 1; 011 012 /** This {@code final} field will contain the size of the file which generated this errror. */ 013 public final long fileSize; 014 015 /** 016 * Constructs a {@code FileSizeException} with no detail message. 017 * @param fileSize The size of the file that generated this error. 018 */ 019 public FileSizeException(long fileSize) 020 { 021 super(); 022 this.fileSize = fileSize; 023 } 024 025 /** 026 * Constructs an {@code FileSizeException} with the specified detail message. 027 * @param message the detail message. 028 * @param fileSize The size of the file that generated this error. 029 */ 030 public FileSizeException(String message, long fileSize) 031 { 032 super(message); 033 this.fileSize = fileSize; 034 } 035}