Name

SPVM::ExchangeAPI::Options - Options Code

Description

The SPVM::ExchangeAPI::Options class has methods to get and set options.

Usage

my $error = SPVM::ExchangeAPI::Options->new;

Fields

line

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

Gets and sets a line number.

Examples:

$error->line(10);
my $line = $error->line;

file

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

Gets and sets a file path.

Examples:

$error->file("TestCase.spvm");
my $file = $error->file;

method_abs_name

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

Gets and sets a method absolute name.

Examples:

$error->method_abs_name("TestCase#foo");
my $method_abs_name = $error->method_abs_name;

Class Methods

new

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

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

Options:

  • line

    A line number.

  • file

    A file path.

  • method_abs_name

    A method absolute name.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License