|
||||||||||
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
com.opensymphony.xwork.XworkException
public class XworkException
A generic runtime exception that optionally contains Location information
Constructor Summary | |
---|---|
XworkException()
Constructs a XworkException with no detail message. |
|
XworkException(java.lang.String s)
Constructs a XworkException with the specified
detail message. |
|
XworkException(java.lang.String s,
java.lang.Object target)
Constructs a XworkException with the specified
detail message and target. |
|
XworkException(java.lang.String s,
java.lang.Throwable cause)
Constructs a XworkException with the specified
detail message and exception cause. |
|
XworkException(java.lang.String s,
java.lang.Throwable cause,
java.lang.Object target)
Constructs a XworkException with the specified
detail message, cause, and target |
|
XworkException(java.lang.Throwable cause)
Constructs a XworkException with the root cause |
|
XworkException(java.lang.Throwable cause,
java.lang.Object target)
Constructs a XworkException with the root cause and target |
Method Summary | |
---|---|
Location |
getLocation()
Gets the location of the error, if available |
java.util.List |
getSnippet()
Gets a source code snippet with the default padding |
java.util.List |
getSnippet(int padding)
Gets a source code snippet with the default padding |
java.lang.Throwable |
getThrowable()
Deprecated. Use getCause() |
java.lang.String |
toString()
Returns a short description of this throwable object, including the location. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XworkException()
XworkException
with no detail message.
public XworkException(java.lang.String s)
XworkException
with the specified
detail message.
s
- the detail message.public XworkException(java.lang.String s, java.lang.Object target)
XworkException
with the specified
detail message and target.
s
- the detail message.target
- the target of the exception.public XworkException(java.lang.Throwable cause)
XworkException
with the root cause
cause
- The wrapped exceptionpublic XworkException(java.lang.Throwable cause, java.lang.Object target)
XworkException
with the root cause and target
cause
- The wrapped exceptiontarget
- The target of the exceptionpublic XworkException(java.lang.String s, java.lang.Throwable cause)
XworkException
with the specified
detail message and exception cause.
s
- the detail message.cause
- the wrapped exceptionpublic XworkException(java.lang.String s, java.lang.Throwable cause, java.lang.Object target)
XworkException
with the specified
detail message, cause, and target
s
- the detail message.cause
- The wrapped exceptiontarget
- The target of the exceptionMethod Detail |
---|
public java.lang.Throwable getThrowable()
public Location getLocation()
getLocation
in interface Locatable
public java.util.List getSnippet()
public java.util.List getSnippet(int padding)
padding
- The amount of lines before and after the error to includepublic java.lang.String toString()
toString
in class java.lang.Throwable
Throwable
.
|
XWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |