| 1 | package Geoffrey::Exception::NotSupportedException; | ||||||||||||
| 2 | |||||||||||||
| 3 | 20 | ▶ | use utf8; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 20 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 20 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 20 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 20 | ▶ | use Carp qw/longmess/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | 20 | $Geoffrey::Exception::NotSupportedException::VERSION = '0.000206'; | |||||||||||
| 10 | |||||||||||||
| 11 | 20 | ▶ | use Exception::Class 1.23 ( | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 20 | 'Geoffrey::Exception::NotSupportedException' => {description => 'Unidentified exception',}, | |||||||||||
| 13 | 'Geoffrey::Exception::NotSupportedException::Index' => {description => 'Add index is not supported!',}, | ||||||||||||
| 14 | 'Geoffrey::Exception::NotSupportedException::Column' => {description => 'Any column is not supported!',}, | ||||||||||||
| 15 | 'Geoffrey::Exception::NotSupportedException::Sequence' => {description => 'Add sequence is not supported!',}, | ||||||||||||
| 16 | 'Geoffrey::Exception::NotSupportedException::Primarykey' => | ||||||||||||
| 17 | {description => 'Primarykey handle is not supported!',}, | ||||||||||||
| 18 | 'Geoffrey::Exception::NotSupportedException::Function' => {description => 'Function is not supported!'}, | ||||||||||||
| 19 | 'Geoffrey::Exception::NotSupportedException::ForeignKey' => {description => 'Foreignkey action is not supported!'}, | ||||||||||||
| 20 | 'Geoffrey::Exception::NotSupportedException::Uniquekey' => {description => 'Uniquekey handle is not supported!',}, | ||||||||||||
| 21 | 'Geoffrey::Exception::NotSupportedException::EmptyTable' => | ||||||||||||
| 22 | {description => 'Create a table without columns is not supported!',}, | ||||||||||||
| 23 | 'Geoffrey::Exception::NotSupportedException::Version' => {description => 'Any version is not supportet!',}, | ||||||||||||
| 24 | 'Geoffrey::Exception::NotSupportedException::ColumnType' => | ||||||||||||
| 25 | {description => 'Any type not supported in some converter!',}, | ||||||||||||
| 26 | 'Geoffrey::Exception::NotSupportedException::Converter' => {description => 'Converter does not support!',}, | ||||||||||||
| 27 | 'Geoffrey::Exception::NotSupportedException::ConverterType' => | ||||||||||||
| 28 | {description => 'Any subroutine in any converter type is not supported!',}, | ||||||||||||
| 29 | 'Geoffrey::Exception::NotSupportedException::Action' => | ||||||||||||
| 30 | {description => 'Any subroutine in any action is not supported!',}, | ||||||||||||
| 31 | 'Geoffrey::Exception::NotSupportedException::ListInformation' => | ||||||||||||
| 32 | {description => 'Any list information in converter is not supported!',}, | ||||||||||||
| 33 | 'Geoffrey::Exception::NotSupportedException::File' => | ||||||||||||
| 34 | {description => 'Any subroutine information in file is not supported!',}, | ||||||||||||
| 35 | 'Geoffrey::Exception::NotSupportedException::Changelog' => | ||||||||||||
| 36 | {description => 'Any subroutine in any action is not supported!',}, | ||||||||||||
| 37 | 20 | ); | |||||||||||
| 38 | |||||||||||||
| 39 | 1 | ▶ | sub throw_empty_table { | ||||||||||
|
Subroutine
throw_empty_table: called CC=3 SCAR=11.6
Pod
documented
| |||||||||||||
| 40 | 1 | ▶ | my $s_throw_message = shift // q~~; | ||||||||||
|
Condition50%1/2
shift() // ""
MC/DC0%0/1
shift() // ""
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||
| 41 | 1 | my $hr_params = shift; | |||||||||||
| 42 | 1 | ▶ | if ($hr_params) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 43 | 1 | require Data::Dumper; | |||||||||||
| 44 | 1 | my $s_params = Data::Dumper->new([$hr_params])->Terse(1)->Deparse(1)->Sortkeys(1)->Dump; | |||||||||||
| 45 | 1 | return Geoffrey::Exception::NotSupportedException::EmptyTable->throw( | |||||||||||
| 46 | "Create a table without columns is not supported!\n$s_params\n" . longmess); | ||||||||||||
| 47 | } | ||||||||||||
| 48 | 0 | return Geoffrey::Exception::NotSupportedException::EmptyTable->throw( | |||||||||||
| 49 | "Create a table without columns is not supported! $s_throw_message\n" . longmess); | ||||||||||||
| 50 | } | ||||||||||||
| 51 | |||||||||||||
| 52 | 1 | ▶ | sub throw_index { | ||||||||||
|
Subroutine
throw_index: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 53 | 1 | my ($s_type, $s_converter) = @_; | |||||||||||
| 54 | 1 | return Geoffrey::Exception::NotSupportedException::Index->throw( | |||||||||||
| 55 | qq~Index type "$s_type" is not supported! $s_converter\n~ . longmess); | ||||||||||||
| 56 | } | ||||||||||||
| 57 | |||||||||||||
| 58 | 4 | ▶ | sub throw_column { | ||||||||||
|
Subroutine
throw_column: called CC=2 SCAR=9.2
Pod
documented
| |||||||||||||
| 59 | 4 | my ($s_type, $s_converter, $hr_params) = @_; | |||||||||||
| 60 | 4 | ▶ | if ($hr_params) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 61 | 0 | require Data::Dumper; | |||||||||||
| 62 | 0 | my $s_params = Data::Dumper->new([$hr_params])->Terse(1)->Deparse(1)->Sortkeys(1)->Dump; | |||||||||||
| 63 | 0 | return Geoffrey::Exception::NotSupportedException::Column->throw( | |||||||||||
| 64 | qq~Column type "$s_type" is not supported!\n$s_params\n$s_converter\n~ . longmess); | ||||||||||||
| 65 | } | ||||||||||||
| 66 | 4 | return Geoffrey::Exception::NotSupportedException::Column->throw( | |||||||||||
| 67 | qq~Column type "$s_type" is not supported! $s_converter\n~ . longmess); | ||||||||||||
| 68 | } | ||||||||||||
| 69 | |||||||||||||
| 70 | 2 | ▶ | sub throw_sequence { | ||||||||||
|
Subroutine
throw_sequence: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 71 | 2 | my ($s_type, $s_converter) = @_; | |||||||||||
| 72 | 2 | return Geoffrey::Exception::NotSupportedException::Sequence->throw( | |||||||||||
| 73 | qq~Sequence type "$s_type" is not supported! $s_converter\n~ . longmess); | ||||||||||||
| 74 | } | ||||||||||||
| 75 | |||||||||||||
| 76 | 1 | ▶ | sub throw_primarykey { | ||||||||||
|
Subroutine
throw_primarykey: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 77 | 1 | my ($s_type, $s_converter) = @_; | |||||||||||
| 78 | 1 | return Geoffrey::Exception::NotSupportedException::Primarykey->throw( | |||||||||||
| 79 | qq~Primarykey type "$s_type" is not supported! $s_converter\n~ . longmess); | ||||||||||||
| 80 | } | ||||||||||||
| 81 | |||||||||||||
| 82 | 1 | ▶ | sub throw_unique { | ||||||||||
|
Subroutine
throw_unique: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 83 | 1 | my ($s_type, $s_converter) = @_; | |||||||||||
| 84 | 1 | return Geoffrey::Exception::NotSupportedException::Uniquekey->throw( | |||||||||||
| 85 | qq~Uniquekey type "$s_type" is not supported! $s_converter\n~ . longmess); | ||||||||||||
| 86 | } | ||||||||||||
| 87 | |||||||||||||
| 88 | 4 | ▶ | sub throw_foreignkey { | ||||||||||
|
Subroutine
throw_foreignkey: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 89 | 4 | my ($s_type, $s_converter) = @_; | |||||||||||
| 90 | 4 | return Geoffrey::Exception::NotSupportedException::ForeignKey->throw( | |||||||||||
| 91 | qq~ForeignKey type "$s_type" is not supported! $s_converter\n~ . longmess); | ||||||||||||
| 92 | } | ||||||||||||
| 93 | |||||||||||||
| 94 | 3 | ▶ | sub throw_version { | ||||||||||
|
Subroutine
throw_version: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||
| 95 | 3 | my ($s_type, $s_min_version, $s_version, $s_max_version) = @_; | |||||||||||
| 96 | 3 | ▶ | return Geoffrey::Exception::NotSupportedException::Version->throw( | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 97 | qq~Type $s_type with unsupported version: $s_min_version <= $s_version\n~ . longmess) | ||||||||||||
| 98 | if !$s_max_version; | ||||||||||||
| 99 | |||||||||||||
| 100 | 2 | return Geoffrey::Exception::NotSupportedException::Version->throw( | |||||||||||
| 101 | qq~Type $s_type with unsupported version: $s_min_version <= $s_version <= $s_max_version\n~ . longmess); | ||||||||||||
| 102 | } | ||||||||||||
| 103 | |||||||||||||
| 104 | 1 | ▶ | sub throw_column_type { | ||||||||||
|
Subroutine
throw_column_type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 105 | 1 | my ($s_type, $s_converter) = @_; | |||||||||||
| 106 | 1 | return Geoffrey::Exception::NotSupportedException::ColumnType->throw( | |||||||||||
| 107 | qq~Type: $s_type not supported in converter $s_converter.\n~ . longmess); | ||||||||||||
| 108 | } | ||||||||||||
| 109 | |||||||||||||
| 110 | 33 | ▶ | sub throw_converter_type { | ||||||||||
|
Subroutine
throw_converter_type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 111 | 33 | my ($s_subroutine, $s_converter_type) = @_; | |||||||||||
| 112 | 33 | return Geoffrey::Exception::NotSupportedException::ConverterType->throw( | |||||||||||
| 113 | qq~Subroutine "$s_subroutine" in converter type "$s_converter_type" is not supported!\n~ . longmess); | ||||||||||||
| 114 | } | ||||||||||||
| 115 | |||||||||||||
| 116 | 21 | ▶ | sub throw_converter { | ||||||||||
|
Subroutine
throw_converter: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 117 | 21 | return Geoffrey::Exception::NotSupportedException::ConverterType->throw( | |||||||||||
| 118 | qq~Converter does not support!\n~ . longmess); | ||||||||||||
| 119 | } | ||||||||||||
| 120 | |||||||||||||
| 121 | 16 | ▶ | sub throw_action { | ||||||||||
|
Subroutine
throw_action: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 122 | 16 | return Geoffrey::Exception::NotSupportedException::Action->throw( | |||||||||||
| 123 | qq~Subroutine in action is not supported!\n~ . longmess); | ||||||||||||
| 124 | } | ||||||||||||
| 125 | |||||||||||||
| 126 | 3 | ▶ | sub throw_changelog { | ||||||||||
|
Subroutine
throw_changelog: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 127 | 3 | return Geoffrey::Exception::NotSupportedException::Changelog->throw( | |||||||||||
| 128 | qq~Subroutine in action is not supported!\n~ . longmess); | ||||||||||||
| 129 | } | ||||||||||||
| 130 | |||||||||||||
| 131 | 12 | ▶ | sub throw_list_information { | ||||||||||
|
Subroutine
throw_list_information: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 132 | 12 | my ($s_subroutine, $s_converter) = @_; | |||||||||||
| 133 | 12 | return Geoffrey::Exception::NotSupportedException::ListInformation->throw( | |||||||||||
| 134 | qq~Subroutine "$s_subroutine" in "$s_converter" is not supported!\n~ . longmess); | ||||||||||||
| 135 | } | ||||||||||||
| 136 | |||||||||||||
| 137 | 3 | ▶ | sub throw_file { | ||||||||||
|
Subroutine
throw_file: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 138 | 3 | my ($s_subroutine, $s_file) = @_; | |||||||||||
| 139 | 3 | return Geoffrey::Exception::NotSupportedException::File->throw( | |||||||||||
| 140 | qq~Subroutine "$s_subroutine" in "$s_file" is not supported!\n~ . longmess); | ||||||||||||
| 141 | } | ||||||||||||
| 142 | |||||||||||||
| 143 | 0 | ▶ | sub throw_io_call { | ||||||||||
|
Subroutine
throw_io_call: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 144 | 0 | my ($s_subroutine, $s_io_name) = @_; | |||||||||||
| 145 | 0 | return Geoffrey::Exception::NotSupportedException::Changelog->throw( | |||||||||||
| 146 | qq~Subroutine "$s_subroutine" in changelog IO "$s_io_name" is not supported!\n~ . longmess); | ||||||||||||
| 147 | } | ||||||||||||
| 148 | |||||||||||||
| 149 | 20 | 1; | |||||||||||
| 150 | |||||||||||||
| 151 | __END__ | ||||||||||||