NAME
Podman::Exception - Simple generic exceptions.
SYNOPSIS
eval {
Podman::Exception->throw(404);
};
say $@;
DESCRIPTION
Inheritance
Podman::Exception
isa Mojo::Exception
Podman::Exception is a simple generic exception. Exceptions are thrown on any Podman service request failure.
900 => 'Connection failed.',
304 => 'Action already processing.',
400 => 'Bad parameter in request.',
404 => 'No such item.',
405 => 'Bad request.',
409 => 'Conflict error in operation.',
500 => 'Internal server error.',
The message is determined by the provided code
.
ATTRIBUTES
code
my $exception = Podman::Exception->new( code => 404 );
HTTP code received from Podman service.
AUTHORS
Tobias Schäfer, <tschaefer@blackox.org>
COPYRIGHT AND LICENSE
Copyright (C) 2022-2022, Tobias Schäfer.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.