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
public class ExtractionPluginException extends RuntimeException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExtractionPluginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
-
Method Detail
-
getInstanceWithoutStacktrace
public static ExtractionPluginException getInstanceWithoutStacktrace(String message)
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.
-
-