| SimpleDB-Class documentation | Contained in the SimpleDB-Class distribution. |
SimpleDB::Class::Exception - Exceptions thrown by SimpleDB::Class.
version 1.0502
A submclass of Exception::Class that defines expcetions to be thrown through-out SimpleDB::Class ojbects.
The following exceptions are available from this class.
A general error. Isa Exception::Class.
Thrown when a request object is not found.
The id of the requested object.
Thrown when a parameter isn't passed when it should have been, or if it's left undefined. Isa SimpleDB::Class::Exception::ObjectNotFound.
Thrown when a request object is found, but is corrupt. Isa SimpleDB::Class::Exception::ObjectNotFound.
Thrown when exceptions occur connecting to the SimpleDB database at Amazon, or the memcached server. Isa SimpleDB::Class::Exception.
The HTTP status code returned.
SimpleDB::Class is Copyright 2009-2010 Plain Black Corporation (http://www.plainblack.com/) and is licensed under the same terms as Perl itself.
| SimpleDB-Class documentation | Contained in the SimpleDB-Class distribution. |
package SimpleDB::Class::Exception; BEGIN { $SimpleDB::Class::Exception::VERSION = '1.0502'; }
use strict; use Exception::Class ( 'SimpleDB::Class::Exception' => { description => "A general error occured.", }, 'SimpleDB::Class::Exception::InvalidParam' => { isa => 'SimpleDB::Class::Exception', description => 'This method should be overridden by subclasses.', fields => ['name', 'value'], }, 'SimpleDB::Class::Exception::ObjectNotFound' => { isa => 'SimpleDB::Class::Exception', description => "The object you were trying to retrieve does not exist.", fields => ['id'], }, 'SimpleDB::Class::Exception::InvalidObject' => { isa => 'SimpleDB::Class::Exception::ObjectNotFound', description => "The object you were trying to retrieve does not exist.", }, 'SimpleDB::Class::Exception::Connection' => { isa => 'SimpleDB::Class::Exception', description => "There was a problem establishing a connection.", fields => ['status_code'], }, );
1;