Class RuntimeOperatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bouncycastle.operator.RuntimeOperatorException
- All Implemented Interfaces:
Serializable
Unchecked variant of
OperatorException used when an operator method has no
throws clause to declare a checked exception on.
The streaming operator interfaces in this package extend OutputStream
/ InputStream / Closeable, whose method signatures
— in particular close() and the no-args end-of-stream finalisers used
by some calculators — either don't declare throws IOException at all,
or are inherited from interfaces whose contract precludes additional checked
exceptions. When a cryptographic failure surfaces from one of those points, the
operator wraps it in a RuntimeOperatorException so it can still propagate
to the caller without violating the signature. The original failure is available
via Throwable.getCause().
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an exception with the supplied diagnostic message and no underlying cause.RuntimeOperatorException(String msg, Throwable cause) Construct an exception with the supplied diagnostic message and the underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeOperatorException
Construct an exception with the supplied diagnostic message and no underlying cause.- Parameters:
msg- diagnostic message describing the failure.
-
RuntimeOperatorException
-