| 1 | package Fey::Exceptions; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 28 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 28 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 28 | our $VERSION = '0.44'; | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 28 | my %E; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 28 | ▶ | BEGIN { | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | 28 | %E = ( | |||||||||||||||||||
| 12 | 'Fey::Exception' => { | ||||||||||||||||||||
| 13 | description => | ||||||||||||||||||||
| 14 | 'Generic exception within the Alzabo API. Should only be used as a base class.', | ||||||||||||||||||||
| 15 | }, | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 'Fey::Exception::ObjectState' => { | ||||||||||||||||||||
| 18 | description => | ||||||||||||||||||||
| 19 | 'You called a method on an object which its current state does not allow', | ||||||||||||||||||||
| 20 | isa => 'Fey::Exception', | ||||||||||||||||||||
| 21 | alias => 'object_state_error', | ||||||||||||||||||||
| 22 | }, | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 'Fey::Exception::Params' => { | ||||||||||||||||||||
| 25 | description => | ||||||||||||||||||||
| 26 | 'An exception generated when there is an error in the parameters passed in a method of function call', | ||||||||||||||||||||
| 27 | isa => 'Fey::Exception', | ||||||||||||||||||||
| 28 | alias => 'param_error', | ||||||||||||||||||||
| 29 | }, | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 'Fey::Exception::VirtualMethod' => { | ||||||||||||||||||||
| 32 | description => | ||||||||||||||||||||
| 33 | 'Indicates that the method called must be subclassed in the appropriate class', | ||||||||||||||||||||
| 34 | isa => 'Fey::Exception', | ||||||||||||||||||||
| 35 | alias => 'virtual_method', | ||||||||||||||||||||
| 36 | }, | ||||||||||||||||||||
| 37 | ); | ||||||||||||||||||||
| 38 | } | ||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 28 | ▶ | use Exception::Class (%E); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | 28 | Fey::Exception->Trace(1); | |||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | 28 | ▶ | use base 'Exporter'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | 28 | ▶ | our @EXPORT_OK = map { $_->{alias} || () } values %E; | ||||||||||||||||||
|
Condition66%2/3
$_->{'alias'} || ()
MC/DC0%0/2
$_->{'alias'} || ()
$_->{'alias'}
()
Truth table66%2/3
A || B
A= $_->{'alias'}B= ()
| |||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 28 | 1; | |||||||||||||||||||
| 49 | |||||||||||||||||||||
| 50 | # ABSTRACT: Defines exceptions used in the core Fey classes | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | __END__ | ||||||||||||||||||||