Package net.obvj.confectory.util
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.obvj.confectory.util.ParseException
-
- All Implemented Interfaces:
Serializable
public class ParseException extends Exception
A specialized runtime exception that signals that an error has been reached unexpectedly while parsing.- Since:
- 2.5.0
- Author:
- oswaldo.bapvic.jr (Oswaldo Junior)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseException(String message, Object... args)Constructs a new exception with the specified detail message.ParseException(Throwable cause)Constructs a new exception with the specified cause.ParseException(Throwable cause, String message, Object... args)Constructs a new exception with the specified detail message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ParseException
public ParseException(String message, Object... args)
Constructs a new exception with the specified detail message. A detail message is a String that describes this particular exception.- Parameters:
message- the detailed message, which is saved for later retrieval by theThrowable.getMessage()methodargs- arguments to the message format, as inString.format(String, Object...)
-
ParseException
public ParseException(Throwable cause, String message, Object... args)
Constructs a new exception with the specified detail message and cause.- Parameters:
cause- the cause, which is saved for later retrieval by theThrowable.getCause()method. (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown)message- the detail message, which is saved for later retrieval by theThrowable.getMessage()methodargs- arguments to the message format, as inString.format(String, Object...)
-
ParseException
public ParseException(Throwable cause)
Constructs a new exception with the specified cause. This constructor is useful for exceptions that are wrappers for other throwables.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-
-