NAME

Mojo::SMTP::Client::Exception - base class for Mojo::SMTP::Client exceptions

DESCRIPTION

Mojo::SMTP::Client::Exception is a base class for Mojo::SMTP::Client exceptions. It inherits all events, attributes and methods from Mojo::Exception

Mojo::SMTP::Client::Exception::Stream

Mojo::SMTP::Client::Exception::Stream - stream exceptions for Mojo::SMTP::Client.

DESCRIPTION

Mojo::SMTP::Client::Exception::Stream is a class for stream exceptions inside Mojo::SMTP::Client. It inherits all events, attributes and methods from Mojo::SMTP::Client::Exception.

Mojo::SMTP::Client::Exception::Response

Mojo::SMTP::Client::Exception::Response - response exceptions for Mojo::SMTP::Client.

DESCRIPTION

Mojo::SMTP::Client::Exception::Response is a class for response exceptions inside Mojo::SMTP::Client. It inherits all events, attributes and methods from Mojo::SMTP::Client::Exception.

ATTRIBUTES

Mojo::SMTP::Client::Exception::Response implements the following new attributes

code

my $resp_code = $e->code;
$e->code($resp_code);

Response code

METHODS

Mojo::SMTP::Client::Exception::Response redefines the following methods

throw

Mojo::SMTP::Client::Exception::Response->throw($resp_code, $msg);
Mojo::SMTP::Client::Exception::Response->throw($resp_code, $msg, $files);

Throw exception with stacktrace. First argument should contain response code.

SEE ALSO

Mojo::SMTP::Client, Mojo::SMTP::Client::Response, Mojo::Exception

COPYRIGHT

Copyright Oleg G <oleg@cpan.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.