|
|||||||||||
| 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
A generic runtime exception that optionally contains Location information
| 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 |
List |
getSnippet()
Gets a source code snippet with the default padding |
List |
getSnippet(int padding)
Gets a source code snippet with the default padding |
Throwable |
getThrowable()
Deprecated. Use 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 |
| 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 exception
public XworkException(Throwable cause,
Object target)
XworkException with the root cause and target
cause - The wrapped exceptiontarget - The target of the exception
public XworkException(String s,
Throwable cause)
XworkException with the specified
detail message and exception cause.
s - the detail message.cause - the wrapped exception
public 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 exception| Method Detail |
public Throwable getThrowable()
public Location getLocation()
getLocation in interface Locatablepublic List getSnippet()
public List getSnippet(int padding)
padding - The amount of lines before and after the error to includepublic String toString()
Throwable.
|
XWork Project Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||