c

com.digitalasset.canton.error

GenericCantonRpcError

final case class GenericCantonRpcError(code: ErrorCode, context: Map[String, String], cause: String, resources: Seq[(ErrorResource, String)], correlationId: Option[String], traceId: Option[String], asGrpcStatus: Status, asGrpcError: StatusRuntimeException) extends RpcError with Product with Serializable

Generic canton error usually produced when an un-contextualized error want to return an error that has context

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenericCantonRpcError
  2. Serializable
  3. Product
  4. Equals
  5. RpcError
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GenericCantonRpcError(code: ErrorCode, context: Map[String, String], cause: String, resources: Seq[(ErrorResource, String)], correlationId: Option[String], traceId: Option[String], asGrpcStatus: Status, asGrpcError: StatusRuntimeException)

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. val asGrpcError: StatusRuntimeException

    The gRPC status encoded as a StatusRuntimeException

    The gRPC status encoded as a StatusRuntimeException

    Definition Classes
    GenericCantonRpcErrorRpcError
  5. val asGrpcStatus: Status

    The gRPC status

    The gRPC status

    Definition Classes
    GenericCantonRpcErrorRpcError
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val cause: String

    A human readable string indicating the error

    A human readable string indicating the error

    Definition Classes
    GenericCantonRpcErrorRpcError
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. val code: ErrorCode

    The error code, usually passed in as implicit where the error class is defined

    The error code, usually passed in as implicit where the error class is defined

    Definition Classes
    GenericCantonRpcErrorRpcError
  10. val context: Map[String, String]

    The context (declared fields) of this error

    The context (declared fields) of this error

    Definition Classes
    GenericCantonRpcErrorRpcError
  11. val correlationId: Option[String]

    The correlationId (e.g.

    The correlationId (e.g. submissionId) associated with the request that caused the error

    Definition Classes
    GenericCantonRpcErrorRpcError
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. val resources: Seq[(ErrorResource, String)]

    The resources related to this error

    The resources related to this error

    Definition Classes
    GenericCantonRpcErrorRpcError
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. val traceId: Option[String]

    The traceId associated with the TraceContext at error creation

    The traceId associated with the TraceContext at error creation

    Definition Classes
    GenericCantonRpcErrorRpcError
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RpcError

Inherited from AnyRef

Inherited from Any

Ungrouped