ORM::Error - Error container class.
$error = ORM::Error->new; Music::Song->find( error=>$error ); print "Fatal error\n" if( $error->fatal ); print "Some error\n" if( $error->any ); $error->add_fatal( "Initiate fatal error" ); $error->add_warn( "Initiate warning" ); print $error->text;
Constructor. Takes no argument. Returns empty error container.
add_fatal( $error_message )
Add fatal error message to a container. Return value is undefined.
add_warn( $error_message )
Add warning to a container. Return value is undefined.
upto( $error_container )
If $error_container is specified then send all errors from $self container to $error_container or do nothing otherwise. Return value is undefined.
$error_container
$self
DESTROY
In future implementations will throw exception if errors were ignored by programmer.
Takes no argument. Returns true if container has at least one fatal error.
Takes no argument. Returns true if container is not empty.
Takes no argument. Returns plain text description of errors from container.
ORM
ORM::Tutorial
Alexey V. Akimov
Copyright (C) 2005-2006 Alexey V. Akimov
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
To install ORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ORM
CPAN shell
perl -MCPAN -e shell install ORM
For more information on module installation, please visit the detailed CPAN module installation guide.