Package com.globalmentor.net
Class ResourceNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.globalmentor.net.ResourceIOException
com.globalmentor.net.ResourceNotFoundException
- All Implemented Interfaces:
Serializable
A class indicating that a resource could not be found.
- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResourceNotFoundException
(URI resourceURI) Constructs a new exception for the specified resource URI.ResourceNotFoundException
(URI resourceURI, String message) Constructs a new exception with the specified resource URI and detail message.ResourceNotFoundException
(URI resourceURI, String message, Throwable cause) Constructs a new exception with the specified resource URI, detail message, and cause.ResourceNotFoundException
(URI resourceURI, 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 com.globalmentor.net.ResourceIOException
getResourceURI, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ResourceNotFoundException
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 isnull
.
-
ResourceNotFoundException
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 isnull
.
-
ResourceNotFoundException
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, ornull
to indicate the cause is nonexistent or unknown.- Throws:
NullPointerException
- if the given resource URI isnull
.
-
ResourceNotFoundException
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, ornull
to indicate the cause is nonexistent or unknown.- Throws:
NullPointerException
- if the given resource URI isnull
.
-