|
||||||||||
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
Field Summary | |
---|---|
private Location |
location
|
Constructor Summary | |
---|---|
XWorkException()
Constructs a XWorkException with no detail message. |
|
XWorkException(String s)
Constructs a XWorkException with the specified
detail message. |
|
XWorkException(String s,
Object target)
Constructs a XWorkException with the specified
detail message and target. |
|
XWorkException(String s,
Throwable cause)
Constructs a XWorkException with the specified
detail message and exception cause. |
|
XWorkException(String s,
Throwable cause,
Object target)
Constructs a XWorkException with the specified
detail message, cause, and target |
|
XWorkException(Throwable cause)
Constructs a XWorkException with the root cause |
|
XWorkException(Throwable cause,
Object target)
Constructs a XWorkException with the root cause and target |
Method Summary | |
---|---|
Location |
getLocation()
Gets the location of the error, if available |
Throwable |
getThrowable()
Deprecated. Use Throwable.getCause() |
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 |
Field Detail |
---|
private Location location
Constructor Detail |
---|
public XWorkException()
XWorkException
with no detail message.
public XWorkException(String s)
XWorkException
with the specified
detail message.
s
- the detail message.public XWorkException(String s, Object target)
XWorkException
with the specified
detail message and target.
s
- the detail message.target
- the target of the exception.public XWorkException(Throwable cause)
XWorkException
with the root cause
cause
- The wrapped exceptionpublic XWorkException(Throwable cause, Object target)
XWorkException
with the root cause and target
cause
- The wrapped exceptiontarget
- The target of the exceptionpublic XWorkException(String s, Throwable cause)
XWorkException
with the specified
detail message and exception cause.
s
- the detail message.cause
- the wrapped exceptionpublic XWorkException(String s, Throwable cause, 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 Throwable getThrowable()
Throwable.getCause()
public Location getLocation()
getLocation
in interface Locatable
public String toString()
toString
in class Throwable
Throwable
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |