org.xins.common.text
Class ParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xins.common.text.ParseException
All Implemented Interfaces:
Serializable

public final class ParseException
extends Exception

Exception thrown to indicate a parsing failure.

Since:
XINS 1.0.0
Version:
$Revision: 1.14 $ $Date: 2006/08/28 09:12:31 $
Author:
Ernst de Haan
See Also:
Serialized Form

Constructor Summary
ParseException()
          Constructs a new ParseException with no message, no cause exception and no detailed description of the parse problem.
ParseException(String message)
          Constructs a new ParseException with the specified message.
ParseException(String message, Throwable cause, String detail)
          Constructs a new ParseException with the specified message and cause exception.
 
Method Summary
 String getDetail()
          Returns a description of the parse error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

ParseException

public ParseException()
Constructs a new ParseException with no message, no cause exception and no detailed description of the parse problem.


ParseException

public ParseException(String message)
Constructs a new ParseException with the specified message.

Parameters:
message - the message, can be null.

ParseException

public ParseException(String message,
                      Throwable cause,
                      String detail)
Constructs a new ParseException with the specified message and cause exception.

Parameters:
message - the message to be returned by Throwable.getMessage(), can be null.
cause - the cause exception, can be null.
detail - description of the parse problem only, to be returned by getDetail(), can be null.
Method Detail

getDetail

public String getDetail()
Returns a description of the parse error.

Returns:
a description of the parse error, or null if none is available.


See http://www.xins.org/.