public class StrutsException extends RuntimeException implements Locatable
Constructor and Description |
---|
StrutsException()
Constructs a
StrutsException with no detail message. |
StrutsException(String s)
Constructs a
StrutsException with the specified
detail message. |
StrutsException(String s,
Object target)
Constructs a
StrutsException with the specified
detail message and target. |
StrutsException(String s,
Throwable cause)
Constructs a
StrutsException with the specified
detail message and exception cause. |
StrutsException(String s,
Throwable cause,
Object target)
Constructs a
StrutsException with the specified
detail message, cause, and target |
StrutsException(Throwable cause)
Constructs a
StrutsException with the root cause |
StrutsException(Throwable cause,
Object target)
Constructs a
StrutsException 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, setStackTrace
public StrutsException()
StrutsException
with no detail message.public StrutsException(String s)
StrutsException
with the specified
detail message.s
- the detail message.public StrutsException(String s, Object target)
StrutsException
with the specified
detail message and target.s
- the detail message.target
- the target of the exception.public StrutsException(Throwable cause)
StrutsException
with the root causecause
- The wrapped exceptionpublic StrutsException(Throwable cause, Object target)
StrutsException
with the root cause and targetcause
- The wrapped exceptiontarget
- The target of the exceptionpublic StrutsException(String s, Throwable cause)
StrutsException
with the specified
detail message and exception cause.s
- the detail message.cause
- the wrapped exceptionpublic Location getLocation()
getLocation
in interface Locatable
public String toString()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.