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 |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
file
private String file
- the associated file
url
private URL url
- the associated URL
MSG
private static final String MSG
- the basic exception message
InvalidFormatException
public InvalidFormatException(String file,
String comment)
- Constructs the exception given a file and a comment
- Parameters:
file
- the file to be associatedcomment
- 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 associatedcomment
- to be added to the basic excpetion message
InvalidFormatException
public InvalidFormatException()
getFile
public String getFile()
- Gets the associated file
- Returns:
- the associated file
getURL
private URL getURL()
- Gets the asssociated URL
- Returns:
- the associated URL