| Fey-ORM documentation | Contained in the Fey-ORM distribution. |
Fey::ORM::Exceptions - Defines exceptions used for Fey::ORM
version 0.43
use Fey::ORM::Exceptions qw( no_such_row );
This module defines the exceptions which are used by the core Fey classes.
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.
Cannot find a row in a given table matching the given values
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2011 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| 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__