java.io.Serializable
public class PatternException
extends java.lang.Exception
Constructor | Description |
---|---|
PatternException(java.lang.Exception exception) |
Creates a new PatternException with the given nested
exception.
|
PatternException(java.lang.String message) |
Creates a new PatternException
|
PatternException(java.lang.String message,
java.lang.Exception exception) |
Creates a new PatternException with the given message
and nested exception.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Exception |
getException() |
Returns the exception, which in turn caused this Exception to
be thrown, or null if nested exception exists.
|
java.lang.String |
getMessage() |
Returns the error message for this Exception
|
void |
printStackTrace() |
|
void |
printStackTrace(java.io.PrintStream printer) |
|
void |
printStackTrace(java.io.PrintWriter printer) |
|
java.lang.String |
toString() |
Returns the String representation of this Exception
|
public PatternException(java.lang.String message)
message
- the error message for this exceptionpublic PatternException(java.lang.Exception exception)
exception
- the nested exceptionpublic PatternException(java.lang.String message, java.lang.Exception exception)
message
- the detail message for this exceptionexception
- the nested exceptionpublic java.lang.Exception getException()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter printer)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream printer)
printStackTrace
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable