Bouncy Castle Cryptography Library 1.85

org.bouncycastle.operator
Class RuntimeOperatorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.bouncycastle.operator.RuntimeOperatorException
All Implemented Interfaces:
java.io.Serializable

public class RuntimeOperatorException
extends java.lang.RuntimeException

Unchecked variant of OperatorException used when an operator method has no clause to declare a checked exception on.

The streaming operator interfaces in this package extend OutputStream / InputStream / java.io.Closeable, whose method signatures — in particular and the no-args end-of-stream finalisers used by some calculators — either don't declare 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 so it can still propagate to the caller without violating the signature. The original failure is available via Throwable.getCause().

See Also:
Serialized Form

Constructor Summary
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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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, or .

Bouncy Castle Cryptography Library 1.85