| 1 | package CXC::Number::Grid::Failure; | ||
| 2 | |||
| 3 | # ABSTRACT: CXC::Number::Sequence Exceptions | ||
| 4 | 13 | ▶ | use v5.28; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 13 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 13 | ▶ | use experimental 'signatures'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 13 | ▶ | use parent 'Exporter::Tiny'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 13 | ▶ | use custom::failures (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 13 | our $VERSION = '0.12'; | |
| 13 | |||
| 14 | 13 | our @EXPORT_OK; | |
| 15 | BEGIN { | ||
| 16 | 13 | ▶ | my @failures = qw/ parameter::constraint |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | parameter::unknown | ||
| 18 | parameter::interface | ||
| 19 | parameter::IllegalCombination | ||
| 20 | internal | ||
| 21 | /; | ||
| 22 | 13 | custom::failures->import( __PACKAGE__, @failures ); | |
| 23 | 13 | @EXPORT_OK = map { s/::/_/r } @failures; | |
| 24 | } | ||
| 25 | |||
| 26 | ▶ | sub _exporter_expand_sub ( $, $name, $, $, $ ) { | |
|
Subroutine
_exporter_expand_sub: called CC=1 SCAR=0.0
| |||
| 27 | 36 | my $failure = __PACKAGE__ . q{::} . ( $name =~ s/_/::/gr ); | |
| 28 | ## no critic (BuiltinFunctions::ProhibitStringyEval) | ||
| 29 | ## no critic (ErrorHandling::RequireCheckingReturnValueOfEval) | ||
| 30 | 36 | $name => eval "sub () { '$failure' }"; | |
| 31 | } | ||
| 32 | |||
| 33 | 13 | 1; | |
| 34 | |||
| 35 | __END__ | ||
| 36 | |||
| 37 | =pod | ||
| 38 | |||
| 39 | =for :stopwords Diab Jerius Smithsonian Astrophysical Observatory | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | CXC::Number::Grid::Failure - CXC::Number::Sequence Exceptions | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | version 0.12 | ||
| 48 | |||
| 49 | =head1 INTERNALS | ||
| 50 | |||
| 51 | =head1 SUPPORT | ||
| 52 | |||
| 53 | =head2 Bugs | ||
| 54 | |||
| 55 | Please report any bugs or feature requests to bug-cxc-number@rt.cpan.org or through the web interface at: L<https://rt.cpan.org/Public/Dist/Display.html?Name=CXC-Number> | ||
| 56 | |||
| 57 | =head2 Source | ||
| 58 | |||
| 59 | Source is available at | ||
| 60 | |||
| 61 | https://gitlab.com/djerius/cxc-number | ||
| 62 | |||
| 63 | and may be cloned from | ||
| 64 | |||
| 65 | https://gitlab.com/djerius/cxc-number.git | ||
| 66 | |||
| 67 | =head1 SEE ALSO | ||
| 68 | |||
| 69 | Please see those modules/websites for more information related to this module. | ||
| 70 | |||
| 71 | =over 4 | ||
| 72 | |||
| 73 | =item * | ||
| 74 | |||
| 75 | L<CXC::Number|CXC::Number> | ||
| 76 | |||
| 77 | =back | ||
| 78 | |||
| 79 | =head1 AUTHOR | ||
| 80 | |||
| 81 | Diab Jerius <djerius@cpan.org> | ||
| 82 | |||
| 83 | =head1 COPYRIGHT AND LICENSE | ||
| 84 | |||
| 85 | This software is Copyright (c) 2019 by Smithsonian Astrophysical Observatory. | ||
| 86 | |||
| 87 | This is free software, licensed under: | ||
| 88 | |||
| 89 | The GNU General Public License, Version 3, June 2007 | ||
| 90 | |||
| 91 | =cut | ||