fr.umlv.tatoo.runtime.parser
Class ParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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 :
- a message
- a cause, may be null
- a terminal, may be null
- a set of expected terminals, the lookahead, may be null.
- a view of the parser stack, may be null
- Author:
- Julien Cervelle
- See Also:
- Serialized Form
ParsingException
public ParsingException()
ParsingException
public ParsingException(String message,
Throwable cause)
ParsingException
public ParsingException(String message)
ParsingException
public ParsingException(Throwable cause)
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