| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.opensymphony.xwork.XworkException
All known Subclasses: com.opensymphony.xwork.config.ReferenceResolverException, com.opensymphony.xwork.util.TypeConversionException, com.opensymphony.webwork.WebWorkException, com.opensymphony.xwork.config.ConfigurationException,
XworkException | public class XworkException extends RuntimeException implements Locatable(Code) | | A generic runtime exception that optionally contains Location information
author: Jason Carreira |
XworkException | public XworkException()(Code) | | Constructs a XworkException with no detail message.
|
XworkException | public XworkException(String s)(Code) | | Constructs a XworkException with the specified
detail message.
Parameters: s - the detail message. |
XworkException | public XworkException(String s, Object target)(Code) | | Constructs a XworkException with the specified
detail message and target.
Parameters: s - the detail message. Parameters: target - the target of the exception. |
XworkException | public XworkException(Throwable cause)(Code) | | Constructs a XworkException with the root cause
Parameters: cause - The wrapped exception |
XworkException | public XworkException(Throwable cause, Object target)(Code) | | Constructs a XworkException with the root cause and target
Parameters: cause - The wrapped exception Parameters: target - The target of the exception |
XworkException | public XworkException(String s, Throwable cause)(Code) | | Constructs a XworkException with the specified
detail message and exception cause.
Parameters: s - the detail message. Parameters: cause - the wrapped exception |
XworkException | public XworkException(String s, Throwable cause, Object target)(Code) | | Constructs a XworkException with the specified
detail message, cause, and target
Parameters: s - the detail message. Parameters: cause - The wrapped exception Parameters: target - The target of the exception |
getLocation | public Location getLocation()(Code) | | Gets the location of the error, if available
|
getSnippet | public List getSnippet()(Code) | | Gets a source code snippet with the default padding
|
getSnippet | public List getSnippet(int padding)(Code) | | Gets a source code snippet with the default padding
Parameters: padding - The amount of lines before and after the error to include |
getThrowable | public Throwable getThrowable()(Code) | | Gets the underlying cause
|
toString | public String toString()(Code) | | Returns a short description of this throwable object, including the
location. If no detailed message is available, it will use the message
of the underlying exception if available.
a string representation of this Throwable . |
|
|