Enumeration: ErrorCode
api/client/types.ErrorCode
Specifies possible types of errors in the SDK
Enumeration Members
DataUnavailable
• DataUnavailable = "DataUnavailable"
the data that is being fetched does not exist on-chain, or relies on non-existent data. There are some cases where the data did exist at some point, but has been deleted to save storage space
Defined in
EntityInUse
• EntityInUse = "EntityInUse"
this type of error is thrown when attempting to delete/modify an entity which has other entities depending on it. For example, deleting a Portfolio that still holds assets, or removing a Checkpoint Schedule that is being referenced by a Corporate Action
Defined in
FatalError
• FatalError = "FatalError"
error that should cause termination of the calling application
Defined in
General
• General = "General"
general purpose errors that don't fit well into the other categories
Defined in
InsufficientBalance
• InsufficientBalance = "InsufficientBalance"
one or more parties involved in the transaction do not have enough balance to perform it
Defined in
LimitExceeded
• LimitExceeded = "LimitExceeded"
the data that is being written to the chain would result in some limit being exceeded. For example, adding a transfer restriction when the maximum possible amount has already been added
Defined in
MiddlewareError
• MiddlewareError = "MiddlewareError"
errors encountered when interacting with the historic data middleware (GQL server)
Defined in
NoDataChange
• NoDataChange = "NoDataChange"
the data that is being written to the chain is the same data that is already in place. This would result in a redundant/useless transaction being executed
Defined in
NotAuthorized
• NotAuthorized = "NotAuthorized"
user does not have the required roles/permissions to perform an operation
Defined in
TransactionAborted
• TransactionAborted = "TransactionAborted"
transaction removed from the tx pool