diff options
author | dakkar <dakkar@thenautilus.net> | 2018-07-13 18:52:08 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-07-13 18:52:08 +0100 |
commit | 9c7b213f58fe533953953e90b5bc77087ca4d45d (patch) | |
tree | c78cd04844a4ba1e92f1bf1dc29c14b3813e4bc7 /lib/Getopt/Dakkar/X.pm | |
parent | I'm losing the plot, here (diff) | |
download | Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.tar.gz Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.tar.bz2 Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.zip |
Diffstat (limited to 'lib/Getopt/Dakkar/X.pm')
-rw-r--r-- | lib/Getopt/Dakkar/X.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Getopt/Dakkar/X.pm b/lib/Getopt/Dakkar/X.pm index e595b71..f705ed5 100644 --- a/lib/Getopt/Dakkar/X.pm +++ b/lib/Getopt/Dakkar/X.pm @@ -2,3 +2,15 @@ package Getopt::Dakkar::X; use Getopt::Dakkar::Style; # VERSION # ABSTRACT: exceptions + +package Getopt::Dakkar::X::ExtraArgs { + use Getopt::Dakkar::Style qw(class); + with 'Throwable'; + has args => ( is => 'ro', isa => ArrayRef, required => 1 ); +}; + +package Getopt::Dakkar::X::BadOption { + use Getopt::Dakkar::Style qw(class); + with 'Throwable'; + has input => ( is => 'ro', isa => Str, required => 1 ); +}; |