Class CodeExecutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.hotmoka.node.api.CodeExecutionException
All Implemented Interfaces:
Serializable

public class CodeExecutionException extends Exception
A wrapper of an exception, raised during a transaction, that occurred during the execution of a Takamaka constructor or method that was allowed to throw it.
See Also:
  • Constructor Details

    • CodeExecutionException

      public CodeExecutionException(String classNameOfCause, String messageOfCause, String where)
      Builds the wrapper of an exception that occurred during the execution of a Takamaka constructor or method that was allowed to throw it.
      Parameters:
      classNameOfCause - the name of the class of the cause of the exception
      messageOfCause - the message of the cause of the exception. This might be null
      where - a description of the program point of the exception. This might be null
    • CodeExecutionException

      public CodeExecutionException(String message)
      Builds the wrapper of an exception that occurred during the execution of a Takamaka constructor or method that was allowed to throw it.
      Parameters:
      message - the message of the exception