Mercurial > pub > Impl
view Lib/IMPL/Web/NotAllowedException.pm @ 284:f2a6bc5f3184
+IMPL::Object::InlineFactory: implement object factory as subroutine
author | sergey |
---|---|
date | Thu, 14 Feb 2013 19:14:02 +0400 |
parents | 6d8092d8ce1b |
children | 673581380e79 |
line wrap: on
line source
package IMPL::Web::NotAllowedException; use strict; use IMPL::Const qw(:prop); use IMPL::declare { base => [ 'IMPL::Web::Exception' => sub { my %args = @_; $args{Message}; } ] }; sub CTOR { my $this = shift; my %args = @_; $this->headers({ allow => $args{allow} }); } sub status { "405 Method Not Allowed" } 1; __END__