|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
pnuts.lang.PnutsException
public class PnutsException
This is a wrapper class for Exception to be thrown.
Nested Class Summary | |
---|---|
static class |
PnutsException.TraceInfo
A node of a call-chain, which represents a position of a certain function call |
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 contextMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |