| Getopt-Lucid documentation | Contained in the Getopt-Lucid distribution. |
Getopt::Lucid::Exception - Exception classes for Getopt::Lucid
version 0.19
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2010 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
| Getopt-Lucid documentation | Contained in the Getopt-Lucid distribution. |
# # This file is part of Getopt-Lucid # # This software is Copyright (c) 2010 by David Golden. # # This is free software, licensed under: # # The Apache License, Version 2.0, January 2004 # use 5.006; use strict; use warnings; package Getopt::Lucid::Exception; BEGIN { $Getopt::Lucid::Exception::VERSION = '0.19'; } # ABSTRACT: Exception classes for Getopt::Lucid use Exception::Class 1.23 ( "Getopt::Lucid::Exception" => { description => "Unidentified exception", }, "Getopt::Lucid::Exception::Spec" => { description => "Invalid specification", alias => "throw_spec" }, "Getopt::Lucid::Exception::ARGV" => { description => "Invalid argument on command line", alias => "throw_argv" }, "Getopt::Lucid::Exception::Usage" => { description => "Invalid usage", alias => "throw_usage" }, ); sub import { my $caller = caller(0); { no strict 'refs'; *{$caller."::$_"} = *{__PACKAGE__."::$_"} for qw( throw_spec throw_argv throw_usage); } } 1; __END__