Class ResourceNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResourceNotFoundException
    extends ResourceIOException
    A class indicating that a resource could not be found.
    Author:
    Garret Wilson
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceNotFoundException​(java.net.URI resourceURI)
      Constructs a new exception for the specified resource URI.
      ResourceNotFoundException​(java.net.URI resourceURI, java.lang.String message)
      Constructs a new exception with the specified resource URI and detail message.
      ResourceNotFoundException​(java.net.URI resourceURI, java.lang.String message, java.lang.Throwable cause)
      Constructs a new exception with the specified resource URI, detail message, and cause.
      ResourceNotFoundException​(java.net.URI resourceURI, java.lang.Throwable cause)
      Constructs a new exception with the specified resource URI and cause, along with a detail message derived from the cause.
    • Method Summary

      • 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
    • Constructor Detail

      • ResourceNotFoundException

        public ResourceNotFoundException​(java.net.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:
        java.lang.NullPointerException - if the given resource URI is null.
      • ResourceNotFoundException

        public ResourceNotFoundException​(java.net.URI resourceURI,
                                         java.lang.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:
        java.lang.NullPointerException - if the given resource URI is null.
      • ResourceNotFoundException

        public ResourceNotFoundException​(java.net.URI resourceURI,
                                         java.lang.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:
        java.lang.NullPointerException - if the given resource URI is null.
      • ResourceNotFoundException

        public ResourceNotFoundException​(java.net.URI resourceURI,
                                         java.lang.String message,
                                         java.lang.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:
        java.lang.NullPointerException - if the given resource URI is null.