o

com.daml.lf.transaction

TransactionErrors

object TransactionErrors

Defines the errors raised by ContractStateMachine and its clients:

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransactionErrors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class AuthFailureDuringExecution(nid: NodeId, fa: FailedAuthorization) extends Serializable with Product
  2. final case class AuthFailureDuringExecutionTxError(authFailureDuringExecution: AuthFailureDuringExecution) extends TransactionError with Product with Serializable
  3. sealed trait CreateError extends Serializable with Product

    The errors returned by ContractStateMachine.State.visitCreate:

    The errors returned by ContractStateMachine.State.visitCreate:

  4. final case class DuplicateContractId(contractId: ContractId) extends Serializable with Product

    Signals that the transaction tried to create two contracts with the same contract ID or tried to create a contract whose contract ID has been previously successfully fetched.

  5. final case class DuplicateContractIdCreateError(duplicateContractId: DuplicateContractId) extends CreateError with Product with Serializable
  6. final case class DuplicateContractIdKIError(duplicateContractId: DuplicateContractId) extends KeyInputError with Product with Serializable
  7. final case class DuplicateContractIdTxError(duplicateContractId: DuplicateContractId) extends TransactionError with Product with Serializable
  8. final case class DuplicateContractKey(key: GlobalKey) extends Serializable with Product

    Signals that within the transaction we got to a point where two contracts with the same key were active.

    Signals that within the transaction we got to a point where two contracts with the same key were active.

    Note that speedy only detects duplicate key collisions if both contracts are used in the transaction in by-key operations meaning lookup, fetch or exercise-by-key or local creates.

    Two notable cases that will never produce duplicate key errors is a standalone create or a create and a fetch (but not fetch-by-key) with the same key.

    For ledger implementors this means that (for contract key uniqueness) it is sufficient to only look at the inputs and the outputs of the transaction while leaving all internal checks within the transaction to the engine.

  9. final case class DuplicateContractKeyCreateError(duplicateContractKey: DuplicateContractKey) extends CreateError with Product with Serializable
  10. final case class DuplicateContractKeyKIError(duplicateContractKey: DuplicateContractKey) extends KeyInputError with Product with Serializable
  11. final case class DuplicateContractKeyTxError(duplicateContractKey: DuplicateContractKey) extends TransactionError with Product with Serializable
  12. final case class InconsistentContractKey(key: GlobalKey) extends Serializable with Product

    An exercise, fetch or lookupByKey failed because the mapping of key -> contract id was inconsistent with earlier nodes (in execution order).

    An exercise, fetch or lookupByKey failed because the mapping of key -> contract id was inconsistent with earlier nodes (in execution order). This can happened in case of a race condition between the contract and the contract keys queried to the ledger during an interpretation.

  13. final case class InconsistentContractKeyKIError(inconsistentContractKey: InconsistentContractKey) extends KeyInputError with Product with Serializable
  14. sealed trait KeyInputError extends Serializable with Product

    The errors returned by ContractStateMachine.State.handleNode and, as a consequence, HasTxNodes.contractKeyInputs (hence the name):

  15. sealed trait TransactionError extends Serializable with Product

    Errors raised when building transactions with com.daml.lf.speedy.PartialTransaction:

    Errors raised when building transactions with com.daml.lf.speedy.PartialTransaction:

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. object CreateError extends Serializable
  20. object KeyInputError extends Serializable
  21. object TransactionError extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped