Mercurial > pub > Impl
view Lib/IMPL/Web/Exception.pm @ 204:d63f9a92d6d4
+IMPL::Config::Include - simple way to include external config
*IMPL::Web::Handler::TTView - finished template selecting mechanism (not tested)
author | sergey |
---|---|
date | Wed, 02 May 2012 17:42:47 +0400 |
parents | 6b1dda998839 |
children | c8fe3f84feba |
line wrap: on
line source
package IMPL::Web::Exception; use strict; use warnings; use parent qw(IMPL::Exception); __PACKAGE__->PassThroughArgs; sub code { 400; } 1; __END__ =pod =head1 NAME C<IMPL::Web::Exception> - Базовый класс для всех web-исключенийю =head1 SYNOPSIS Вызов исключения =begin code use IMPL::require { WebException => 'IMPL::Web::WebException' }; sub MyWebHandler { # ... die WebException->new("something is wrong"); # ... } =end code =head1 MEMBERS =head2 C<code()> Возвращает C<HTTP> код ошибки. =cut