org.apache.struts2

## Class StrutsException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.opensymphony.xwork2.XWorkException
        - - org.apache.struts2.StrutsException

- All Implemented Interfaces:
    Locatable, Serializable

      public class StrutsException
      extends XWorkException
      implements Locatable

  A generic runtime exception that optionally contains Location information
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    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

  - ### Method Summary

    - ### Methods inherited from class com.opensymphony.xwork2.XWorkException

      `getLocation, toString`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface com.opensymphony.xwork2.util.location.Locatable

      `getLocation`

- - ### Constructor Detail

    - #### StrutsException

          public StrutsException()

      Constructs a `StrutsException` with no detail message.

    - #### StrutsException

          public StrutsException(String s)

      Constructs a `StrutsException` with the specified detail message.
      Parameters:
        `s` - the detail message.

    - #### StrutsException

          public StrutsException(String s,
                         Object target)

      Constructs a `StrutsException` with the specified detail message and target.
      Parameters:
        `s` - the detail message.
        `target` - the target of the exception.

    - #### StrutsException

          public StrutsException(Throwable cause)

      Constructs a `StrutsException` with the root cause
      Parameters:
        `cause` - The wrapped exception

    - #### StrutsException

          public StrutsException(Throwable cause,
                         Object target)

      Constructs a `StrutsException` with the root cause and target
      Parameters:
        `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.
      Parameters:
        `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
      Parameters:
        `s` - the detail message.
        `cause` - The wrapped exception
        `target` - The target of the exception

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.