SCErrorCodeXdr

XDR Source: enum SCErrorCode { SCEC_ARITH_DOMAIN = 0, // Some arithmetic was undefined (overflow, divide-by-zero). SCEC_INDEX_BOUNDS = 1, // Something was indexed beyond its bounds. SCEC_INVALID_INPUT = 2, // User provided some otherwise-bad data. SCEC_MISSING_VALUE = 3, // Some value was required but not provided. SCEC_EXISTING_VALUE = 4, // Some value was provided where not allowed. SCEC_EXCEEDED_LIMIT = 5, // Some arbitrary limit -- gas or otherwise -- was hit. SCEC_INVALID_ACTION = 6, // Data was valid but action requested was not. SCEC_INTERNAL_ERROR = 7, // The host detected an error in its own logic. SCEC_UNEXPECTED_TYPE = 8, // Some type wasn't as expected. SCEC_UNEXPECTED_SIZE = 9 // Something's size wasn't as expected. };

Entries

Link copied to clipboard

Some arithmetic was undefined (overflow, divide-by-zero).

Link copied to clipboard

Something was indexed beyond its bounds.

Link copied to clipboard

User provided some otherwise-bad data.

Link copied to clipboard

Some value was required but not provided.

Link copied to clipboard

Some value was provided where not allowed.

Link copied to clipboard

Some arbitrary limit -- gas or otherwise -- was hit.

Link copied to clipboard

Data was valid but action requested was not.

Link copied to clipboard

The host detected an error in its own logic.

Link copied to clipboard

Some type wasn't as expected.

Link copied to clipboard

Something's size wasn't as expected.

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.