gate.creole.gazetteer
Class InvalidFormatException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--gate.util.GateException
                    |
                    +--gate.creole.gazetteer.InvalidFormatException
All Implemented Interfaces:
Serializable

public class InvalidFormatException
extends GateException

exception thrown when an invalid format of a file is detected

See Also:
Serialized Form

Field Summary
private  String file
          the associated file
private static String MSG
          the basic exception message
private  URL url
          the associated URL
 
Fields inherited from class gate.util.GateException
DEBUG, e
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
InvalidFormatException()
           
InvalidFormatException(String file, String comment)
          Constructs the exception given a file and a comment
InvalidFormatException(URL url, String comment)
          Constructs the exception given an URL and a comment
 
Method Summary
 String getFile()
          Gets the associated file
private  URL getURL()
          Gets the asssociated URL
 
Methods inherited from class gate.util.GateException
printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

file

private String file
the associated file

url

private URL url
the associated URL

MSG

private static final String MSG
the basic exception message
Constructor Detail

InvalidFormatException

public InvalidFormatException(String file,
                              String comment)
Constructs the exception given a file and a comment
Parameters:
file - the file to be associated
comment - to be added to the basic excpetion message

InvalidFormatException

public InvalidFormatException(URL url,
                              String comment)
Constructs the exception given an URL and a comment
Parameters:
url - the url to be associated
comment - to be added to the basic excpetion message

InvalidFormatException

public InvalidFormatException()
Method Detail

getFile

public String getFile()
Gets the associated file
Returns:
the associated file

getURL

private URL getURL()
Gets the asssociated URL
Returns:
the associated URL