Class PluginDataProvider.CommentedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.regsirius06.engine.plugins.files.PluginDataProvider.CommentedIOException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- PluginDataProvider
Custom
IOException subclass with an additional comment to provide
context about the error.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommentedIOException(IOException e, String comment) Constructs a newPluginDataProvider.CommentedIOException. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the comment associated with this exception.Retrieves a stack trace with the additional comment.Retrieves the underlyingIOException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommentedIOException
Constructs a newPluginDataProvider.CommentedIOException.- Parameters:
e- the originalIOExceptioncomment- the comment providing additional context
-
-
Method Details
-
getComment
Retrieves the comment associated with this exception.- Returns:
- the comment
-
getIOException
Retrieves the underlyingIOException.- Returns:
- the original
IOException
-
getCommentedStackTrace
Retrieves a stack trace with the additional comment.- Returns:
- the commented stack trace
-