Class ResourceException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClosedResourceException, NotReadableResourceException, NotWritableResourceException

public class ResourceException extends RuntimeException

Thrown to indicate an error in a resource related operation.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • ResourceException

      public ResourceException()

      Creates a resource exception.

    • ResourceException

      public ResourceException(String message)

      Creates a resource exception with the specified message.

      Parameters:
      message - the message
    • ResourceException

      public ResourceException(Throwable cause)

      Creates a resource exception with the specified cause.

      Parameters:
      cause - the cause
    • ResourceException

      public ResourceException(String message, Throwable cause)

      Creates a resource exception with the specified message and cause.

      Parameters:
      message - the message
      cause - the cause
    • ResourceException

      public ResourceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)

      Creates a resource exception with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.

      Parameters:
      message - the message
      cause - the cause
      enableSuppression - true to enable suppression, false otherwise
      writableStackTrace - true to make the stack trace writable, false otherwise