WebService-Hydra/lib/WebService/Hydra/Exception.pod
=encoding utf8
=for comment POD_DERIVED_INDEX_GENERATED
The following documentation is automatically generated. Please do not edit
this file, but rather the original, inline with WebService::Hydra::Exception
at lib/WebService/Hydra/Exception.pm
(on the system that originally ran this).
If you do edit this file, and don't want your changes to be removed, make
sure you change the first line.
=cut
=head1 NAME
WebService::Hydra::Exception - Base class for all Hydra Exceptions, loading all possible exception types.
=head1 DESCRIPTION
The base class cannot be instantiated directly, and it dynamically loads all exception types within WebService::Hydra::Exception::* namespace.
=head1 Methods
=head2 throw
Instantiates a new exception and throws it (using L<perlfunc/die>).
=head2 as_string
Returns a string representation of the exception.
=head2 as_json
Returns a JSON string representation of the exception.
=head2 log
Logs the exception using Log::Any and increments a stats counter.
=head2 import
The import method dynamically loads specific exceptions, or all by default.
=head1 INHERITED METHODS
=over 4
=item L<Object::Pad::UNIVERSAL>
L<BUILDARGS|Object::Pad::UNIVERSAL/BUILDARGS>
=back