ContractSpecError
public enum ContractSpecError : Error, Sendable
Errors that occur when parsing, validating, or converting Soroban contract specifications.
-
Specified contract function name does not exist in the contract specification.
Declaration
Swift
case functionNotFound(name: String) -
Required function argument is missing from the provided arguments.
Declaration
Swift
case argumentNotFound(name: String) -
Contract specification entry for the given name was not found.
Declaration
Swift
case entryNotFound(name: String) -
Provided value type does not match the expected contract specification type.
Declaration
Swift
case invalidType(message: String) -
Failed to convert between native Swift types and Soroban contract values.
Declaration
Swift
case conversionFailed(message: String) -
Enum value provided does not match any defined cases in the contract specification.
Declaration
Swift
case invalidEnumValue(message: String)
View on GitHub
Install in Dash