Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
DA.Fail
Fail, for FailureStatusModule Snapshot
Lifecycle
Stable.
Notices
Status:
active
Introduced in: 3.4.9
Removed in: -
Warnings: 0
Deprecations: 0
Deprecated since: -Data Types
data FailureCategory
The category of the failure, which determines the status code and log
level of the failure. Maps 1-1 to the Canton error categories documented
here: https://docs.digitalasset.com/operate/3.4/reference/error_codes.html#error-categories-inventory
If you are more familiar with gRPC error codes, you can use the synonyms referenced in the
comments.
Constructors:
InvalidIndependentOfSystemStateUse this to report errors that are independent of the current state of the ledger, and should thus not be retried.
INVALID_ARGUMENT.
See https://docs.digitalasset.com/operate/3.4/reference/error_codes.html#invalidindependentofsystemstate
for more information.
InvalidGivenCurrentSystemStateOtherUse this to report errors that are due to the current state of the ledger, but might disappear if the ledger state changes. Clients should retry these requests after reading updated state from the ledger.
FAILED_PRECONDITION.
See https://docs.digitalasset.com/operate/3.4/reference/error_codes.html#error-categories-inventory
for more information.
Instances:
instance GetField category FailureStatus FailureCategoryinstance SetField category FailureStatus FailureCategoryinstance Eq FailureCategoryinstance Ord FailureCategoryinstance Show FailureCategory
data FailureStatus
Constructors:
FailureStatus| Field | Type | Description | | :---- | :--- | :---------- | | errorId | Text | Unambiguous identifier of the error.
SHOULD be prefixed with the DNS name identifying the app provider
or the API standard defining the error. For example,splice.lfdecentralizedtrust.org/insufficient-fundscould be used for
reporting an out of funds error in the context of the CN token standards. | | category | FailureCategory | Category of the failure, which determines how clients are expected to handle the error. | | message | Text | Developer-facing error message, which should be in English. | | meta | TextMap Text | Machine-readable metadata about the error in a key-value format.
Use this to provide extra context to clients for errors.
SHOULD be less than < 512 characters as it MAY be truncated otherwise. |
instance GetField category FailureStatus FailureCategoryinstance GetField errorId FailureStatus Textinstance GetField message FailureStatus Textinstance GetField meta FailureStatus (TextMap Text)instance SetField category FailureStatus FailureCategoryinstance SetField errorId FailureStatus Textinstance SetField message FailureStatus Textinstance SetField meta FailureStatus (TextMap Text)instance Eq FailureStatusinstance Ord FailureStatusinstance Show FailureStatus
Typeclasses
class Action m => ActionFailWithStatus m
Methods:
failWithStatus : FailureStatus -> m aFail with a failure status
instance ActionFailWithStatus Update
Functions
invalidArgument
InvalidIndependentOfSystemState.
failedPrecondition
InvalidGivenCurrentSystemStateOther.
failWithStatusPure
Orphan Typeclass Instances
-
instance Eq FailureStatus -
instance Ord FailureStatus -
instance Show FailureStatus -
instance Eq FailureCategory -
instance Ord FailureCategory -
instance Show FailureCategory -
instance GetField errorId FailureStatus Text -
instance SetField errorId FailureStatus Text -
instance GetField category FailureStatus FailureCategory -
instance SetField category FailureStatus FailureCategory -
instance GetField message FailureStatus Text -
instance SetField message FailureStatus Text -
instance GetField meta FailureStatus (TextMap Text) -
instance SetField meta FailureStatus (TextMap Text) -
instance ActionFail Update -
instance CanAbort Update