Class IOExceptionWrapper

All Implemented Interfaces:
ExceptionWrapper, Serializable

public class IOExceptionWrapper extends IOException implements ExceptionWrapper
An IOException that can contain nested exceptions.
See Also:
  • Constructor Details

    • IOExceptionWrapper

      public IOExceptionWrapper(Throwable e)
  • Method Details

    • getDetail

      public Throwable getDetail()
      Deprecated.
      replaced by getCause().
      Description copied from interface: ExceptionWrapper
      Returns the nested exception or null if none is present.
      Specified by:
      getDetail in interface ExceptionWrapper
      Returns:
      the nested exception or null if none is present.
    • getCause

      public Throwable getCause()
      Description copied from interface: ExceptionWrapper
      Returns the nested exception or null if none is present.

      This method is intentionally defined to be the same signature as the java.lang.Throwable.getCause method in Java 1.4 and greater. By defining this method to return a nested exception, the Java 1.4 runtime will print the nested stack trace.

      Specified by:
      getCause in interface ExceptionWrapper
      Overrides:
      getCause in class Throwable
      Returns:
      the nested exception or null if none is present.