Class CordaRuntimeException

  • All Implemented Interfaces:
    java.io.Serializable , net.corda.v5.base.exceptions.CordaThrowable

    
    public class CordaRuntimeException
    extends RuntimeException implements CordaThrowable
                        

    Base class for all exceptions used for runtime error conditions in Corda.

    This is the exception class that is used to throw and handle all exceptions you could encounter at runtime in a flow. This class and subclasses can be serialized by Corda and so are safe to throw in flows.

    • Constructor Detail

      • CordaRuntimeException

        CordaRuntimeException(String originalExceptionClassName, String message, Throwable cause)
        Constructor used to wrap any exception in a safe way, taking the original exception class name, message and causes as parameters.
      • CordaRuntimeException

        CordaRuntimeException(String message, Throwable cause)
        Constructor with just a message and a cause, for rethrowing exceptions that can be serialized.
      • CordaRuntimeException

        CordaRuntimeException(String message)
        Constructor with just a message (creating a fresh execption).