gate.creole.ontology
Class InvalidFormatException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bygate.util.GateException
              extended bygate.creole.ontology.InvalidFormatException
All Implemented Interfaces:
Serializable

public class InvalidFormatException
extends GateException

An exception thrown when invalid format of an ontology file is detected

See Also:
Serialized Form

Field Summary
private  String file
          the ontology file
private static String MSG
          The basic exception message
private  URL url
          the url of the file
 
Fields inherited from class gate.util.GateException
e
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InvalidFormatException()
           
InvalidFormatException(String file, String comment)
          Construction given file and comment
InvalidFormatException(URL url, String comment)
          Construction given file URL and comment
 
Method Summary
 String getFile()
          Gets the file associated with this exception
private  URL getURL()
          Gets the URL associated with this exception
 
Methods inherited from class gate.util.GateException
printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file

private String file
the ontology file


url

private URL url
the url of the file


MSG

private static final String MSG
The basic exception message

See Also:
Constant Field Values
Constructor Detail

InvalidFormatException

public InvalidFormatException(String file,
                              String comment)
Construction given file and comment

Parameters:
file - the ontology file
comment - comment of the exception

InvalidFormatException

public InvalidFormatException(URL url,
                              String comment)
Construction given file URL and comment

Parameters:
url - the ontology url
comment - comment of the exception

InvalidFormatException

public InvalidFormatException()
Method Detail

getFile

public String getFile()
Gets the file associated with this exception

Returns:
the file associated with this exception

getURL

private URL getURL()
Gets the URL associated with this exception

Returns:
the URL associated with this exception