Class ResourceIOException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResourceForbiddenException, ResourceNotFoundException, ResourceStateException

public class ResourceIOException extends IOException
A class for resource-related I/O errors, agnostic of the I/O protocol being used. In most case a subclass more specific to the error should be used.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • ResourceIOException

      public ResourceIOException(URI resourceURI)
      Constructs a new exception for the specified resource URI.
      Parameters:
      resourceURI - The URI of the resource to which the exception is related.
      Throws:
      NullPointerException - if the given resource URI is null.
    • ResourceIOException

      public ResourceIOException(URI resourceURI, String message)
      Constructs a new exception with the specified resource URI and detail message.
      Parameters:
      resourceURI - The URI of the resource to which the exception is related.
      message - The detail message.
      Throws:
      NullPointerException - if the given resource URI is null.
    • ResourceIOException

      public ResourceIOException(URI resourceURI, Throwable cause)
      Constructs a new exception with the specified resource URI and cause, along with a detail message derived from the cause.
      Parameters:
      resourceURI - The URI of the resource to which the exception is related.
      cause - The cause, or null to indicate the cause is nonexistent or unknown.
      Throws:
      NullPointerException - if the given resource URI is null.
    • ResourceIOException

      public ResourceIOException(URI resourceURI, String message, Throwable cause)
      Constructs a new exception with the specified resource URI, detail message, and cause.
      Parameters:
      resourceURI - The URI of the resource to which the exception is related.
      message - The detail message.
      cause - The cause, or null to indicate the cause is nonexistent or unknown.
      Throws:
      NullPointerException - if the given resource URI is null.
  • Method Details

    • getResourceURI

      public URI getResourceURI()
      Returns:
      The URI of the resource to which the exception is related.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable