Name

SPVM::ExchangeAPI::Error - Error Code

Description

The SPVM::ExchangeAPI::Error class has methods to get and set an error code.

Usage

my $error = SPVM::ExchangeAPI::Error->new;
$error->code(2);
my $error_code = $error->code;

Fields

code

my $code = $error->code;
$error->code($code);

Gets and sets an error code.

Examples:

$error->code(2);
my $code = $error->code;

Class Methods

new

my $error = SPVM::ExchangeAPI::Error->new(%options);

Creates a new SPVM::ExchangeAPI::Error object.

Options:

  • code

    An error code.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License