Package com.globalmentor.net
Class ResourceIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.globalmentor.net.ResourceIOException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ResourceForbiddenException
,ResourceNotFoundException
,ResourceStateException
public class ResourceIOException extends java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceIOException(java.net.URI resourceURI)
Constructs a new exception for the specified resource URI.ResourceIOException(java.net.URI resourceURI, java.lang.String message)
Constructs a new exception with the specified resource URI and detail message.ResourceIOException(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.ResourceIOException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getResourceURI()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ResourceIOException
public ResourceIOException(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 isnull
.
-
ResourceIOException
public ResourceIOException(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 isnull
.
-
ResourceIOException
public ResourceIOException(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, ornull
to indicate the cause is nonexistent or unknown.- Throws:
java.lang.NullPointerException
- if the given resource URI isnull
.
-
ResourceIOException
public ResourceIOException(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, ornull
to indicate the cause is nonexistent or unknown.- Throws:
java.lang.NullPointerException
- if the given resource URI isnull
.
-
-