NAME

WebService::Hydra::Exception - Base class for all Hydra Exceptions, loading all possible exception types.

DESCRIPTION

The base class cannot be instantiated directly, and it dynamically loads all exception types within WebService::Hydra::Exception::* namespace.

Methods

throw

Instantiates a new exception and throws it (using "die" in perlfunc).

as_string

Returns a string representation of the exception.

as_json

Returns a JSON string representation of the exception.

log

Logs the exception using Log::Any and increments a stats counter.

import

The import method dynamically loads specific exceptions, or all by default.

INHERITED METHODS

Object::Pad::UNIVERSAL

BUILDARGS