Fey::ORM::Exceptions - Defines exceptions used for Fey::ORM


Fey-ORM documentation Contained in the Fey-ORM distribution.

Index


Code Index:

NAME

Top

Fey::ORM::Exceptions - Defines exceptions used for Fey::ORM

VERSION

Top

version 0.43

SYNOPSIS

Top

  use Fey::ORM::Exceptions qw( no_such_row );

DESCRIPTION

Top

This module defines the exceptions which are used by the core Fey classes.

EXCEPTIONS

Top

Loading this module defines the exception classes using Exception::Class. This module also exports subroutines which can be used as a shorthand to throw a specific type of exception.

Fey::ORM::Exceptions

Cannot find a row in a given table matching the given values

no_such_row()

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey-ORM documentation Contained in the Fey-ORM distribution.

package Fey::ORM::Exceptions;
BEGIN {
  $Fey::ORM::Exceptions::VERSION = '0.43';
}

use strict;
use warnings;

use Fey::Exceptions;

my %E;

BEGIN {
    %E = (
        'Fey::Exception::NoSuchRow' => {
            description => 'No row was found for a specified key.',
            isa         => 'Fey::Exception',
            alias       => 'no_such_row',
        },
    );
}

use Exception::Class (%E);

Fey::Exception->Trace(1);

use Sub::Exporter -setup =>
    { exports => [ map { $_->{alias} || () } values %E ] };

1;

# ABSTRACT: Defines exceptions used for Fey::ORM




__END__