org.genepi.parser
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.genepi.parser.ParseException
All Implemented Interfaces:
java.io.Serializable

public class ParseException
extends java.lang.RuntimeException

Les instances de cette classe represente un erreur lors du parsing du fichier de connaissance. [Nettoyer, commentaire en fr]

Version:
1.0
Author:
Stephane Declere, INRIA, Helix
See Also:
Serialized Form

Constructor Summary
ParseException()
          Constructs a build exception with no descriptive information.
ParseException(java.lang.String msg)
          Constructs an exception with the given descriptive message.
ParseException(java.lang.String msg, Location location)
          Constructs an exception with the given descriptive message and a location in a file.
ParseException(java.lang.String msg, java.lang.Throwable cause)
          Constructs an exception with the given message and exception as a root cause.
ParseException(java.lang.String msg, java.lang.Throwable cause, Location location)
          Constructs an exception with the given message and exception as a root cause and a location in a file.
ParseException(java.lang.Throwable cause)
          Constructs an exception with the given exception as a root cause.
 
Method Summary
 java.lang.Throwable getException()
          Returns the nested exception.
 Location getLocation()
           
 void setLocation(Location location)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

public ParseException()
Constructs a build exception with no descriptive information.


ParseException

public ParseException(java.lang.String msg)
Constructs an exception with the given descriptive message.

Parameters:
msg - Description of or information about the exception.

ParseException

public ParseException(java.lang.String msg,
                      java.lang.Throwable cause)
Constructs an exception with the given message and exception as a root cause.

Parameters:
msg - Description of or information about the exception.
cause - Throwable that might have cause this one.

ParseException

public ParseException(java.lang.String msg,
                      java.lang.Throwable cause,
                      Location location)
Constructs an exception with the given message and exception as a root cause and a location in a file.

Parameters:
msg - Description of or information about the exception.
cause - Exception that might have cause this one.
location - Location in the project file where the error occured.

ParseException

public ParseException(java.lang.Throwable cause)
Constructs an exception with the given exception as a root cause.

Parameters:
cause - Exception that might have caused this one.

ParseException

public ParseException(java.lang.String msg,
                      Location location)
Constructs an exception with the given descriptive message and a location in a file.

Parameters:
msg - Description of or information about the exception.
location - Location in the project file where the error occured.
Method Detail

getException

public java.lang.Throwable getException()
Returns the nested exception.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

setLocation

public void setLocation(Location location)

getLocation

public Location getLocation()