Offline Transaction Signing (OTS) 0.1.0
Loading...
Searching...
No Matches
ots-errors.h File Reference

Error codes for the C ABI. More...

#include <stdint.h>
Include dependency graph for ots-errors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  OTS_ERROR_CODE {
  OTS_SUCCESS = 0 , OTS_ERROR_RUNTIME_ERROR = -1 , OTS_ERROR_LOGIC_ERROR = -2 , OTS_ERROR_INVALID_ARGUMENT = -3 ,
  OTS_ERROR_RANGE_ERROR = -4 , OTS_ERROR_NOT_IMPLEMENTED_YET = -5 , OTS_ERROR_DOMAIN_ERROR = -6 , OTS_ERROR_OUT_OF_RANGE = -7 ,
  OTS_ERROR_MEMORY_ALLOCATION_ERROR = -11 , OTS_ERROR_SECURITY_ERROR = -12 , OTS_ERROR_SECURITY_EXCEPTION = -61 , OTS_ERROR_UNKNOWN_NETWORK = -62 ,
  OTS_ERROR_BUFFER_OVERFLOW_EXCEPTION = -71 , OTS_ERROR_LOW_ENTROPY = -121 , OTS_ERROR_WIPEABLESTRING_UNSAFE_CONVERSION = -1001 , OTS_ERROR_WIPEABLEVECTOR_UNSAFE_CONVERSION = -2001 ,
  OTS_ERROR_SIGN_INVALID_SIGNATURE = -3001 , OTS_ERROR_SIGN_EMPTY_MESSAGE = -3002 , OTS_ERROR_SIGN_EMPTY_SIGNATURE = -3003 , OTS_ERROR_SEED_NO_DEFAULT_LANGUAGE_SET = -4001 ,
  OTS_ERROR_SEED_LANGUAGE_NOT_FOUND = -4002 , OTS_ERROR_SEED_LANGUAGE_NOT_SUPPORTED_BY_SEED_TYPE = -4003 , OTS_ERROR_SEED_WORD_COUNT = -4004 , OTS_ERROR_SEED_SEED_ENCODING_FAILED = -4005 ,
  OTS_ERROR_SEED_SEED_DECODING_FAILED = -4006 , OTS_ERROR_SEED_LENGTH_MISMATCH = -4007 , OTS_ERROR_SEED_TOO_FEW_VALUES = -4008 , OTS_ERROR_SEED_PASSWORD_NOT_SUPPORTED = -4009 ,
  OTS_ERROR_SEED_MERGE_ERROR = -4010 , OTS_ERROR_POLYSEED_WORD_COUNT = -5001 , OTS_ERROR_POLYSEED_UNSUPPORTED_LANGUAGE = -5002 , OTS_ERROR_POLYSEED_CHECKSUM_MISMATCH = -5003 ,
  OTS_ERROR_POLYSEED_UNSUPPORTED_FEATURES = -5004 , OTS_ERROR_POLYSEED_INVALID_SEED_FORMAT = -5005 , OTS_ERROR_POLYSEED_MEMORY_ALLOCATION_ERROR = -5006 , OTS_ERROR_POLYSEED_AMBIGOUS_LANGUAGE = -5007 ,
  OTS_ERROR_POLYSEED_NO_PASSWORD_PROVIDED = -5008 , OTS_ERROR_LEGACYSEED_INVALID_SEED_FORMAT = -6001 , OTS_ERROR_SEEDJAR_SEED_NOT_FOUND = -7001 , OTS_ERROR_KEYSTORE_LOCKED_ACCESS_ATTEMPT = -8001 ,
  OTS_ERROR_KEYSTORE_LOCKED_WRITE_ATTEMPT = -8002 , OTS_ERROR_KEYSTORE_POLYSEED_ACTIVE_POLYSEED_DATA_SESSION = -8101 , OTS_ERROR_KEYSTORE_POLYSEED_NO_ACTIVE_POLYSEED_DATA_SESSION = -8102 , OTS_ERROR_KEYSTORE_POLYSEED_POLYSEED_DATA_READ_ONLY_SESSION = -8103 ,
  OTS_ERROR_WALLET_ADDRESS_NOT_FOUND = -9001 , OTS_ERROR_WALLET_IMPORT_OUTPUTS = -9002 , OTS_ERROR_WALLET_EXPORT_KEY_IMAGES = -9003 , OTS_ERROR_WALLET_INVALID_CIPHERTEXT = -9004 ,
  OTS_ERROR_WALLET_CIPHERTEXT_AUTHENTICATION_FAILED = -9005 , OTS_ERROR_WALLET_INTERNAL_ERROR = -9006 , OTS_ERROR_ACCOUNT_GENERATION_FAILED = -10001 , OTS_ERROR_TX_INVALID = -11001 ,
  OTS_ERROR_ADDRESS_INVALID = -12001 , OTS_ERROR_ADDRESS_NOT_INTEGRATED = -12002
}
 Error codes matching C++ exceptions. More...
 

Detailed Description

Error codes for the C ABI.

Note
Auto-generated from ots-exceptions.hpp - DO NOT EDIT DIRECTLY

Enumeration Type Documentation

◆ OTS_ERROR_CODE

Error codes matching C++ exceptions.

Enumerator
OTS_SUCCESS 
OTS_ERROR_RUNTIME_ERROR 

RuntimeError.

See also
ots::exception::RuntimeError in
ots.hpp
OTS_ERROR_LOGIC_ERROR 

LogicError.

See also
ots::exception::LogicError in
ots.hpp
OTS_ERROR_INVALID_ARGUMENT 

InvalidArgument.

See also
ots::exception::InvalidArgument in
ots.hpp
OTS_ERROR_RANGE_ERROR 

RangeError.

See also
ots::exception::RangeError in
ots.hpp
OTS_ERROR_NOT_IMPLEMENTED_YET 

NotImplementedYet.

See also
ots::exception::NotImplementedYet in
ots.hpp
OTS_ERROR_DOMAIN_ERROR 

DomainError.

See also
ots::exception::DomainError in
ots.hpp
OTS_ERROR_OUT_OF_RANGE 

OutOfRange.

See also
ots::exception::OutOfRange in
ots.hpp
OTS_ERROR_MEMORY_ALLOCATION_ERROR 

MemoryAllocationError.

See also
ots::exception::MemoryAllocationError in
ots.hpp
OTS_ERROR_SECURITY_ERROR 

SecurityError.

See also
ots::exception::SecurityError in
ots.hpp
OTS_ERROR_SECURITY_EXCEPTION 

SecurityException.

See also
ots::exception::SecurityException in
ots.hpp
OTS_ERROR_UNKNOWN_NETWORK 

UnknownNetwork.

See also
ots::exception::UnknownNetwork in
ots.hpp
OTS_ERROR_BUFFER_OVERFLOW_EXCEPTION 

BufferOverflowException.

See also
ots::exception::BufferOverflowException in
ots.hpp
OTS_ERROR_LOW_ENTROPY 

LowEntropy.

See also
ots::exception::LowEntropy in
ots.hpp
OTS_ERROR_WIPEABLESTRING_UNSAFE_CONVERSION 

UnsafeConversion.

See also
ots::exception::wipeablestring::UnsafeConversion in
ots.hpp
OTS_ERROR_WIPEABLEVECTOR_UNSAFE_CONVERSION 

UnsafeConversion.

See also
ots::exception::wipeablevector::UnsafeConversion in
ots.hpp
OTS_ERROR_SIGN_INVALID_SIGNATURE 

InvalidSignature.

See also
ots::exception::sign::InvalidSignature in
ots.hpp
OTS_ERROR_SIGN_EMPTY_MESSAGE 

EmptyMessage.

See also
ots::exception::sign::EmptyMessage in
ots.hpp
OTS_ERROR_SIGN_EMPTY_SIGNATURE 

EmptySignature.

See also
ots::exception::sign::EmptySignature in
ots.hpp
OTS_ERROR_SEED_NO_DEFAULT_LANGUAGE_SET 

NoDefaultLanguageSet.

See also
ots::exception::seed::NoDefaultLanguageSet in
ots.hpp
OTS_ERROR_SEED_LANGUAGE_NOT_FOUND 

LanguageNotFound.

See also
ots::exception::seed::LanguageNotFound in
ots.hpp
OTS_ERROR_SEED_LANGUAGE_NOT_SUPPORTED_BY_SEED_TYPE 

LanguageNotSupportedBySeedType.

See also
ots::exception::seed::LanguageNotSupportedBySeedType in
ots.hpp
OTS_ERROR_SEED_WORD_COUNT 

WordCount.

See also
ots::exception::seed::WordCount in
ots.hpp
OTS_ERROR_SEED_SEED_ENCODING_FAILED 

SeedEncodingFailed.

See also
ots::exception::seed::SeedEncodingFailed in
ots.hpp
OTS_ERROR_SEED_SEED_DECODING_FAILED 

SeedDecodingFailed.

See also
ots::exception::seed::SeedDecodingFailed in
ots.hpp
OTS_ERROR_SEED_LENGTH_MISMATCH 

LengthMismatch.

See also
ots::exception::seed::LengthMismatch in
ots.hpp
OTS_ERROR_SEED_TOO_FEW_VALUES 

TooFewValues.

See also
ots::exception::seed::TooFewValues in
ots.hpp
OTS_ERROR_SEED_PASSWORD_NOT_SUPPORTED 

PasswordNotSupported.

See also
ots::exception::seed::PasswordNotSupported in
ots.hpp
OTS_ERROR_SEED_MERGE_ERROR 

MergeError.

See also
ots::exception::seed::MergeError in
ots.hpp
OTS_ERROR_POLYSEED_WORD_COUNT 

WordCount.

See also
ots::exception::polyseed::WordCount in
ots.hpp
OTS_ERROR_POLYSEED_UNSUPPORTED_LANGUAGE 

UnsupportedLanguage.

See also
ots::exception::polyseed::UnsupportedLanguage in
ots.hpp
OTS_ERROR_POLYSEED_CHECKSUM_MISMATCH 

ChecksumMismatch.

See also
ots::exception::polyseed::ChecksumMismatch in
ots.hpp
OTS_ERROR_POLYSEED_UNSUPPORTED_FEATURES 

UnsupportedFeatures.

See also
ots::exception::polyseed::UnsupportedFeatures in
ots.hpp
OTS_ERROR_POLYSEED_INVALID_SEED_FORMAT 

InvalidSeedFormat.

See also
ots::exception::polyseed::InvalidSeedFormat in
ots.hpp
OTS_ERROR_POLYSEED_MEMORY_ALLOCATION_ERROR 

MemoryAllocationError.

See also
ots::exception::polyseed::MemoryAllocationError in
ots.hpp
OTS_ERROR_POLYSEED_AMBIGOUS_LANGUAGE 

AmbigousLanguage.

See also
ots::exception::polyseed::AmbigousLanguage in
ots.hpp
OTS_ERROR_POLYSEED_NO_PASSWORD_PROVIDED 

NoPasswordProvided.

See also
ots::exception::polyseed::NoPasswordProvided in
ots.hpp
OTS_ERROR_LEGACYSEED_INVALID_SEED_FORMAT 

InvalidSeedFormat.

See also
ots::exception::legacyseed::InvalidSeedFormat in
ots.hpp
OTS_ERROR_SEEDJAR_SEED_NOT_FOUND 

SeedNotFound.

See also
ots::exception::seedjar::SeedNotFound in
ots.hpp
OTS_ERROR_KEYSTORE_LOCKED_ACCESS_ATTEMPT 

LockedAccessAttempt.

See also
ots::exception::keystore::LockedAccessAttempt in
ots.hpp
OTS_ERROR_KEYSTORE_LOCKED_WRITE_ATTEMPT 

LockedWriteAttempt.

See also
ots::exception::keystore::LockedWriteAttempt in
ots.hpp
OTS_ERROR_KEYSTORE_POLYSEED_ACTIVE_POLYSEED_DATA_SESSION 

ActivePolyseedDataSession.

See also
ots::exception::keystore::polyseed::ActivePolyseedDataSession in
ots.hpp
OTS_ERROR_KEYSTORE_POLYSEED_NO_ACTIVE_POLYSEED_DATA_SESSION 

NoActivePolyseedDataSession.

See also
ots::exception::keystore::polyseed::NoActivePolyseedDataSession in
ots.hpp
OTS_ERROR_KEYSTORE_POLYSEED_POLYSEED_DATA_READ_ONLY_SESSION 

PolyseedDataReadOnlySession.

See also
ots::exception::keystore::polyseed::PolyseedDataReadOnlySession in
ots.hpp
OTS_ERROR_WALLET_ADDRESS_NOT_FOUND 

AddressNotFound.

See also
ots::exception::wallet::AddressNotFound in
ots.hpp
OTS_ERROR_WALLET_IMPORT_OUTPUTS 

ImportOutputs.

See also
ots::exception::wallet::ImportOutputs in
ots.hpp
OTS_ERROR_WALLET_EXPORT_KEY_IMAGES 

ExportKeyImages.

See also
ots::exception::wallet::ExportKeyImages in
ots.hpp
OTS_ERROR_WALLET_INVALID_CIPHERTEXT 

InvalidCiphertext.

See also
ots::exception::wallet::InvalidCiphertext in
ots.hpp
OTS_ERROR_WALLET_CIPHERTEXT_AUTHENTICATION_FAILED 

CiphertextAuthenticationFailed.

See also
ots::exception::wallet::CiphertextAuthenticationFailed in
ots.hpp
OTS_ERROR_WALLET_INTERNAL_ERROR 

InternalError.

See also
ots::exception::wallet::InternalError in
ots.hpp
OTS_ERROR_ACCOUNT_GENERATION_FAILED 

GenerationFailed.

See also
ots::exception::account::GenerationFailed in
ots.hpp
OTS_ERROR_TX_INVALID 

Invalid.

See also
ots::exception::tx::Invalid in
ots.hpp
OTS_ERROR_ADDRESS_INVALID 

Invalid.

See also
ots::exception::address::Invalid in
ots.hpp
OTS_ERROR_ADDRESS_NOT_INTEGRATED 

NotIntegrated.

See also
ots::exception::address::NotIntegrated in
ots.hpp