SCErrorTypeXdr

XDR Source: enum SCErrorType { SCE_CONTRACT = 0, // Contract-specific, user-defined codes. SCE_WASM_VM = 1, // Errors while interpreting WASM bytecode. SCE_CONTEXT = 2, // Errors in the contract's host context. SCE_STORAGE = 3, // Errors accessing host storage. SCE_OBJECT = 4, // Errors working with host objects. SCE_CRYPTO = 5, // Errors in cryptographic operations. SCE_EVENTS = 6, // Errors while emitting events. SCE_BUDGET = 7, // Errors relating to budget limits. SCE_VALUE = 8, // Errors working with host values or SCVals. SCE_AUTH = 9 // Errors from the authentication subsystem. };

Entries

Link copied to clipboard

Contract-specific, user-defined codes.

Link copied to clipboard

Errors while interpreting WASM bytecode.

Link copied to clipboard

Errors in the contract's host context.

Link copied to clipboard

Errors accessing host storage.

Link copied to clipboard

Errors working with host objects.

Link copied to clipboard

Errors in cryptographic operations.

Link copied to clipboard

Errors while emitting events.

Link copied to clipboard

Errors relating to budget limits.

Link copied to clipboard

Errors working with host values or SCVals.

Link copied to clipboard

Errors from the authentication subsystem.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.