| 1 | package Games::Framework::RCP::Exceptions; | ||
| 2 | |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.05'; | |
| 8 | |||
| 9 | 1 | ▶ | use Exception::Class ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | 'Private' => { | |
| 11 | description => 'Illegal access of private subroutine.', | ||
| 12 | }, | ||
| 13 | 'DB_Gen_Exception' => { | ||
| 14 | description => 'Database related issues.' | ||
| 15 | }, | ||
| 16 | 'DB_Invalid_Type' => { | ||
| 17 | isa => 'DB_Gen_Exception', | ||
| 18 | description => 'Violations of database types.' | ||
| 19 | }, | ||
| 20 | 'DB_Non_Existant' => { | ||
| 21 | isa => 'DB_Gen_Exception', | ||
| 22 | description => 'Record does not exist.' | ||
| 23 | }, | ||
| 24 | 'DB_Non_Unique' => { | ||
| 25 | isa => 'DB_Gen_Exception', | ||
| 26 | description => 'Violations of [uniq] or [pk].' | ||
| 27 | }, | ||
| 28 | 'DB_Missing_Params' => { | ||
| 29 | isa => 'DB_Gen_Exception', | ||
| 30 | description => 'Not enough information for inserting data.' | ||
| 31 | }, | ||
| 32 | 1 | ); | |
| 33 | |||
| 34 | 1 | 1; | |
| 35 | |||
| 36 | __END__ | ||