Lib-Pepper

 view release on metacpan or  search on metacpan

lib/Lib/Pepper/Exception.pm  view on Meta::CPAN


    # Communication errors
    -1_500 => 'Communication error',
    -1_501 => 'Connection failed',
    -1_502 => 'Disconnected',
    -1_503 => 'Communication timeout',
    -1_504 => 'Send error',
    -1_505 => 'Receive error',
    -1_506 => 'Protocol error',
    -1_507 => 'Invalid response',
    -1_508 => 'Terminal busy',
    -1_509 => 'Terminal error',
);

sub checkResult($self, $result, $context) {
    if(!defined $result) {
        croak("Undefined result code in context: $context");
    }

    if($result >= PEP_FUNCTION_RESULT_SUCCESS) {
        return 1;

lib/Lib/Pepper/Exception.pm  view on Meta::CPAN

=head2 Communication Errors (-1500 to -1509)

- -1500: Communication error
- -1501: Connection failed
- -1502: Disconnected
- -1503: Communication timeout
- -1504: Send error
- -1505: Receive error
- -1506: Protocol error
- -1507: Invalid response
- -1508: Terminal busy
- -1509: Terminal error

See Lib::Pepper::Constants for the complete list of error code constants.

=head1 WARNING: AI USE

Warning, this file was generated with the help of the 'Claude' AI (an LLM/large
language model by the USA company Anthropic PBC) in November 2025. It was not
reviewed line-by-line by a human, only on a functional level. It is therefore
not up to the usual code quality and review standards. Different copyright laws



( run in 0.812 second using v1.01-cache-2.11-cpan-39bf76dae61 )