comparison Lib/IMPL/Exception.pm @ 197:6b1dda998839

Added IMPL::declare, IMPL::require, to simplify module definitions IMPL::Transform now admires object inheritance while searching for the transformation Added HTTP some exceptions IMPL::Web::Application::RestResource almost implemented
author sergey
date Thu, 19 Apr 2012 02:10:02 +0400
parents 4d0e1962161c
children c8fe3f84feba
comparison
equal deleted inserted replaced
196:a705e848dcc7 197:6b1dda998839
88 our @ISA = qw(IMPL::Exception); 88 our @ISA = qw(IMPL::Exception);
89 __PACKAGE__->PassThroughArgs; 89 __PACKAGE__->PassThroughArgs;
90 90
91 package IMPL::InvalidArgumentException; 91 package IMPL::InvalidArgumentException;
92 our @ISA = qw(IMPL::Exception); 92 our @ISA = qw(IMPL::Exception);
93 __PACKAGE__->PassThroughArgs; 93 our %CTOR = (
94 'IMPL::Exception' => sub { "An invalid argument", @_ }
95 );
94 96
95 package IMPL::DuplicateException; 97 package IMPL::DuplicateException;
96 our @ISA = qw(IMPL::Exception); 98 our @ISA = qw(IMPL::Exception);
97 __PACKAGE__->PassThroughArgs; 99 __PACKAGE__->PassThroughArgs;
98 100