| 1 | package WebService::Technorati::Exception; | ||
| 2 | use strict; | ||
| 3 | use utf8; | ||
| 4 | |||
| 5 | |||
| 6 | BEGIN { | ||
| 7 | use vars qw ($VERSION); | ||
| 8 | $VERSION = 0.04; | ||
| 9 | } | ||
| 10 | |||
| 11 | =head1 WebService::Technorati::NetworkException | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | |||
| 16 | =head1 WebService::Technorati::DataException | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | =head1 WebService::Technorati::InstantiationException | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | =head1 WebService::Technorati::StateValidationException | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | |||
| 33 | =head1 WebService::Technorati::AccessViolationException | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | |||
| 38 | =head1 WebService::Technorati::MethodNotImplementedException | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | use Exception::Class | ||
| 45 | ( 'WebService::Technorati::Exception', | ||
| 46 | |||
| 47 | 'WebService::Technorati::NetworkException' => | ||
| 48 | { isa => 'WebService::Technorati::Exception', | ||
| 49 | description => 'Indicates a network availability error' }, | ||
| 50 | |||
| 51 | 'WebService::Technorati::DataException' => | ||
| 52 | { isa => 'WebService::Technorati::Exception', | ||
| 53 | description => 'Indicates a server backend availability error' }, | ||
| 54 | |||
| 55 | 'WebService::Technorati::InstantiationException' => | ||
| 56 | { isa => 'WebService::Technorati::Exception', | ||
| 57 | description => 'Indicates a insufficient arguments to create class instance' }, | ||
| 58 | |||
| 59 | 'WebService::Technorati::StateValidationException' => | ||
| 60 | { isa => 'WebService::Technorati::Exception', | ||
| 61 | description => 'Indicates an insufficiently populated data state' }, | ||
| 62 | |||
| 63 | 'WebService::Technorati::AccessViolationException' => | ||
| 64 | { isa => 'WebService::Technorati::Exception', | ||
| 65 | description => 'Indicates access to a private attribute' }, | ||
| 66 | |||
| 67 | 'WebService::Technorati::MethodNotImplementedException' => | ||
| 68 | { isa => 'WebService::Technorati::Exception', | ||
| 69 | description => 'Indicates an errant method call' } | ||
| 70 | |||
| 71 | ); | ||
| 72 | |||
| 73 | 1; |