InvalidFileFormatException.java

jmud-0.11/src/util/file/InvalidFileFormatException.java · 988 B

From the archive jmud-0_11.tgz

Download the archive   « Back to the archive contents

package util.file;

public class InvalidFileFormatException extends Exception {

  private String theFileName   = null;
  private String theLocation   = null;  // where in the source code
  private String theReason     = null;  // why?
  private String theLine       = null;
  private int    theLineNumber = 0;

  static private final String UNKNOWN = "desconhecido(a)";

  public InvalidFileFormatException() {
    theFileName   = UNKNOWN;
    theLocation   = UNKNOWN;
    theReason     = UNKNOWN;
    theLine       = UNKNOWN;
  }

  public InvalidFileFormatException(String fileName, String location, String reason, String line, int lineNumber) {
    super("\r\n       file: " + fileName + 
	  "\r\n   location: " + location + 
	  "\r\n     reason: " + reason + 
	  "\r\n       line: " + line + 
	  "\r\nline number: " + lineNumber);
    theFileName   = fileName;
    theLocation   = location;
    theReason     = reason;
    theLine       = line;
    theLineNumber = lineNumber;
  }
}

Site Stats

Snippets: 1791
Codebases: 571