fr.umlv.tatoo.runtime.parser
Class ParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fr.umlv.tatoo.runtime.parser.ParsingException
All Implemented Interfaces:
Serializable

public class ParsingException
extends RuntimeException

This class is used to signal that an error occurs during the parsing process. A parsing exception contains :

Author:
Julien Cervelle
See Also:
Serialized Form

Constructor Summary
ParsingException()
           
ParsingException(String message)
           
ParsingException(String message, Throwable cause)
           
ParsingException(Throwable cause)
           
 
Method Summary
 String getMessage()
           
 void setDetailMessage(String detailMessage)
          Allow to add a detail message to the exception message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsingException

public ParsingException()

ParsingException

public ParsingException(String message,
                        Throwable cause)

ParsingException

public ParsingException(String message)

ParsingException

public ParsingException(Throwable cause)
Method Detail

setDetailMessage

public void setDetailMessage(String detailMessage)
Allow to add a detail message to the exception message. The detail message is concatenated to the current message. This method can only be called once.

Parameters:
detailMessage - a details message
Throws:
IllegalArgumentException - if detailMessage is null
IllegalStateException - if detailMessage is already set
See Also:
getMessage()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable