org.apache.struts2
类 StrutsException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 com.opensymphony.xwork2.XWorkException
                  继承者 org.apache.struts2.StrutsException
所有已实现的接口:
com.opensymphony.xwork2.util.location.Locatable, Serializable

public class StrutsException
extends com.opensymphony.xwork2.XWorkException
implements com.opensymphony.xwork2.util.location.Locatable

A generic runtime exception that optionally contains Location information

另请参见:
序列化表格

构造方法摘要
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
 
方法摘要
 
从类 com.opensymphony.xwork2.XWorkException 继承的方法
getLocation, getThrowable, toString
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 com.opensymphony.xwork2.util.location.Locatable 继承的方法
getLocation
 

构造方法详细信息

StrutsException

public StrutsException()
Constructs a StrutsException with no detail message.


StrutsException

public StrutsException(String s)
Constructs a StrutsException with the specified detail message.

参数:
s - the detail message.

StrutsException

public StrutsException(String s,
                       Object target)
Constructs a StrutsException with the specified detail message and target.

参数:
s - the detail message.
target - the target of the exception.

StrutsException

public StrutsException(Throwable cause)
Constructs a StrutsException with the root cause

参数:
cause - The wrapped exception

StrutsException

public StrutsException(Throwable cause,
                       Object target)
Constructs a StrutsException with the root cause and target

参数:
cause - The wrapped exception
target - The target of the exception

StrutsException

public StrutsException(String s,
                       Throwable cause)
Constructs a StrutsException with the specified detail message and exception cause.

参数:
s - the detail message.
cause - the wrapped exception

StrutsException

public StrutsException(String s,
                       Throwable cause,
                       Object target)
Constructs a StrutsException with the specified detail message, cause, and target

参数:
s - the detail message.
cause - The wrapped exception
target - The target of the exception