package Fey::ORM::Exceptions; 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 base 'Exporter'; our @EXPORT_OK = map { $_->{alias} || () } values %E; 1; __END__ =head1 NAME Fey::ORM::Exceptions - Defines exceptions used for Fey::ORM =head1 SYNOPSIS use Fey::ORM::Exceptions qw( no_such_row ); =head1 DESCRIPTION This module defines the exceptions which are used by the core Fey classes. =head1 EXCEPTIONS Loading this module defines the exception classes using C. This module also exports subroutines which can be used as a shorthand to throw a specific type of exception. =head2 Fey::ORM::Exceptions Cannot find a row in a given table matching the given values =head2 no_such_row() =head1 AUTHOR Dave Rolsky, =head1 BUGS See L for details on how to report bugs. =head1 COPYRIGHT & LICENSE Copyright 2006-2008 Dave Rolsky, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut