Catalyst::Exception - Catalyst Exception Class


Catalyst-Runtime documentation Contained in the Catalyst-Runtime distribution.

Index


Code Index:

NAME

Top

Catalyst::Exception - Catalyst Exception Class

SYNOPSIS

Top

   Catalyst::Exception->throw( qq/Fatal exception/ );

See also Catalyst.

DESCRIPTION

Top

This is the Catalyst Exception class.

METHODS

Top

throw( $message )

throw( message => $message )

throw( error => $error )

Throws a fatal exception.

meta

Provided by Moose

AUTHORS

Top

Catalyst Contributors, see Catalyst.pm

COPYRIGHT

Top


Catalyst-Runtime documentation Contained in the Catalyst-Runtime distribution.

package Catalyst::Exception;

# XXX: See bottom of file for Exception implementation

{
    package Catalyst::Exception::Base;

    use Moose;
    use namespace::clean -except => 'meta';

    with 'Catalyst::Exception::Basic';

    __PACKAGE__->meta->make_immutable;
}

{
    package Catalyst::Exception;

    use Moose;
    use namespace::clean -except => 'meta';

    use vars qw[$CATALYST_EXCEPTION_CLASS];

    BEGIN {
        extends($CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base');
    }

    __PACKAGE__->meta->make_immutable;
}

1;