NAME

PAGI::StructuredParameters::Exception - Base class for structured-parameter errors

DESCRIPTION

Base class for the exceptions raised by PAGI::StructuredParameters. Every subclass represents malformed or incomplete incoming data and reports an HTTP "status" of 400 (Bad Request). Instances stringify to their "message".

METHODS

new

my $err = PAGI::StructuredParameters::Exception->new(%args);

throw

PAGI::StructuredParameters::Exception->throw(%args);

Constructs an instance and dies with it.

status

Returns 400.

message

Returns the human-readable error message. Overridden by subclasses.

AUTHOR

John Napiorkowski <jjnapiork@cpan.org>

COPYRIGHT & LICENSE

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