Package io.ocfl.api.exception
Class OcflIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.ocfl.api.exception.OcflJavaException
io.ocfl.api.exception.OcflIOException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OcflFileAlreadyExistsException
,OcflNoSuchFileException
This exception is a wrapper around an IOException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOcflIOException
(Exception cause) OcflIOException
(String message) OcflIOException
(String message, Exception cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic OcflIOException
from
(IOException e) Wraps an IO exception in the appropriate wrapper class.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OcflIOException
-
OcflIOException
-
OcflIOException
-
-
Method Details
-
from
Wraps an IO exception in the appropriate wrapper class. For example, NoSuchFileException to OcflNoSuchFileException.- Parameters:
e
- the base exception- Returns:
- wrapped exception
-
getMessage
- Overrides:
getMessage
in classThrowable
-