public class XWorkException extends RuntimeException implements Locatable
| Constructor and Description |
|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
Location |
getLocation()
Gets the location of the error, if available
|
String |
toString()
Returns a short description of this throwable object, including the
location.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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 causecause - The wrapped exceptionpublic XWorkException(Throwable cause, Object target)
XWorkException with the root cause and targetcause - 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 Location getLocation()
getLocation in interface Locatablepublic String toString()
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.