public class PnutsException
extends java.lang.RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
PnutsException.TraceInfo
A node of a call-chain, which represents a position of a certain function
call
|
Modifier and Type | Field and Description |
---|---|
protected int |
column |
protected java.lang.String |
contextName |
protected java.lang.Object |
file |
protected int |
line |
protected java.lang.Object |
operation |
protected java.lang.Throwable |
throwable |
protected java.util.Vector |
trace |
Constructor and Description |
---|
PnutsException()
Constructor
|
PnutsException(java.lang.String msg)
Constructor
|
PnutsException(java.lang.String msg,
Context context)
Constructor
|
PnutsException(java.lang.String key,
java.lang.Object[] param,
Context context)
This constructor creates a PnutsException using i18n resources in
pnuts.properties.
|
PnutsException(java.lang.String bundleName,
java.lang.String key,
java.lang.Object[] param,
Context context)
This constructor creates a PnutsException using i18n resources in
pnuts.properties.
|
PnutsException(java.lang.Throwable t)
Deprecated.
replaced by PnutsException(Throwable, Context)
|
PnutsException(java.lang.Throwable t,
Context context)
Constructor
|
PnutsException(java.lang.Throwable t,
java.lang.Object operation,
Context context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
getBackTrace()
Returns an enumeration of PnutsException.TraceInfo objects
|
int |
getColumn()
Returns the column number where the error occured.
|
int |
getLine()
Returns the line number where the error occured.
|
java.lang.String |
getMessage() |
java.lang.Object |
getScriptSource()
Returns the script source (usually a URL) where the error occured.
|
java.lang.Throwable |
getThrowable()
Returns the root cause
|
void |
printStackTrace(java.io.PrintStream ps) |
void |
printStackTrace(java.io.PrintWriter writer) |
java.lang.String |
toString() |
protected int line
protected int column
protected java.lang.Object file
protected java.lang.Throwable throwable
protected java.lang.String contextName
protected transient java.util.Vector trace
protected transient java.lang.Object operation
public PnutsException()
public PnutsException(java.lang.String msg)
msg
- the error messagepublic PnutsException(java.lang.String msg, Context context)
msg
- the error messagecontext
- the context in which the error occurspublic PnutsException(java.lang.String key, java.lang.Object[] param, Context context)
public PnutsException(java.lang.String bundleName, java.lang.String key, java.lang.Object[] param, Context context)
public PnutsException(java.lang.Throwable t)
public PnutsException(java.lang.Throwable t, Context context)
t
- a Throwablecontext
- the contextpublic PnutsException(java.lang.Throwable t, java.lang.Object operation, Context context)
t
- a Throwableoperation
- a Method or a Constructorcontext
- the contextpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Throwable getThrowable()
public java.util.Enumeration getBackTrace()
public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
public int getLine()
public int getColumn()
public java.lang.Object getScriptSource()
public java.lang.String toString()
toString
in class java.lang.Throwable