java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.base.resource.ResourceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClosedResourceException
,NotReadableResourceException
,NotWritableResourceException
Thrown to indicate an error in a resource related operation.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a resource exception.ResourceException
(String message) Creates a resource exception with the specified message.ResourceException
(String message, Throwable cause) Creates a resource exception with the specified message and cause.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.ResourceException
(Throwable cause) Creates a resource exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResourceException
public ResourceException()Creates a resource exception.
-
ResourceException
Creates a resource exception with the specified message.
- Parameters:
message
- the message
-
ResourceException
Creates a resource exception with the specified cause.
- Parameters:
cause
- the cause
-
ResourceException
Creates a resource exception with the specified message and cause.
- Parameters:
message
- the messagecause
- 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 messagecause
- the causeenableSuppression
- true to enable suppression, false otherwisewritableStackTrace
- true to make the stack trace writable, false otherwise
-