|
||||||||||
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.xwork2.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.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.lang.String toString()
toString
in class java.lang.Throwable
Throwable
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |