Package org.bouncycastle.operator
Class RuntimeOperatorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.bouncycastle.operator.RuntimeOperatorException
-
- All Implemented Interfaces:
java.io.Serializable
public class RuntimeOperatorException extends java.lang.RuntimeExceptionUnchecked variant ofOperatorExceptionused when an operator method has nothrowsclause to declare a checked exception on.The streaming operator interfaces in this package extend
OutputStream/InputStream/Closeable, whose method signatures — in particularclose()and the no-args end-of-stream finalisers used by some calculators — either don't declarethrows IOExceptionat 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 aRuntimeOperatorExceptionso it can still propagate to the caller without violating the signature. The original failure is available viaThrowable.getCause().- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuntimeOperatorException(java.lang.String msg)Construct an exception with the supplied diagnostic message and no underlying cause.RuntimeOperatorException(java.lang.String msg, java.lang.Throwable cause)Construct an exception with the supplied diagnostic message and the underlying cause.
-
-
-
Constructor Detail
-
RuntimeOperatorException
public RuntimeOperatorException(java.lang.String msg)
Construct an exception with the supplied diagnostic message and no underlying cause.- Parameters:
msg- diagnostic message describing the failure.
-
RuntimeOperatorException
public RuntimeOperatorException(java.lang.String msg, java.lang.Throwable cause)Construct an exception with the supplied diagnostic message and the underlying cause.- Parameters:
msg- diagnostic message describing the failure.cause- the underlying exception that triggered the failure, ornull.
-
-