ePages 6.17.40 - DE_EPAGES/Core/API/MooseError.pm

Package DE_EPAGES::Core::API::MooseError

Error handling for Exceptions raised by Moose. It uses the error code "MooseDie". To use it, you have to assign it to the error_class handler in your moose package.

Example
package MyPackage;
use metaclass (
    metaclass   => 'Moose::Meta::Class',
    error_class => 'DE_EPAGES::Core::API::MooseError',
);
use Moose;
has 'Bool', 'isa' => 'Bool', 'is' => 'rw'; # some moose code.
no Moose;

Functions

new

new

Constructor called by Moose::Meta::Class. Creates an epages error object

Syntax
$class->new( %args  );
Input
$class (object)
package ref
%args (hash)
error arguments
Return
$Error (DE_EPAGES::Core::API::Error)
Error object