Class ExtractionPluginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hansken.plugin.extraction.runtime.grpc.client.ExtractionPluginException
- All Implemented Interfaces:
Serializable
Used for exceptions thrown by the actual Extraction Plugins code.
When the code of an Extraction Plugin throws an exception, the stacktrace is not
automatically shown in the logs. Instead a confusing gRPC StatusRuntimeException is shown. With
this class this StatusRuntimeException can be hidden. The relevant stacktrace is sent with
gRPC and can be printed in the logs.
- Author:
- Netherlands Forensic Institute
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExtractionPluginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtractionPluginExceptiongetInstanceWithoutStacktrace(String message) Get an instance ofExtractionPluginExceptionthat won't print its stacktrace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExtractionPluginException
-
-
Method Details
-
getInstanceWithoutStacktrace
Get an instance ofExtractionPluginExceptionthat won't print its stacktrace.- Parameters:
message- The errormessage that will be printed.- Returns:
- an instance of
ExtractionPluginExceptionthat won't print its stacktrace.
-