Skip to content

Commit

Permalink
kill Throwable::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
dakkar committed Feb 28, 2012
1 parent 2ef703c commit 09d4bf8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Plack/Handler/Stomp/Exceptions.pm
Expand Up @@ -19,23 +19,23 @@ package Plack::Handler::Stomp::Exceptions;
} }


{package Plack::Handler::Stomp::Exceptions::AppError; {package Plack::Handler::Stomp::Exceptions::AppError;
use Moose;extends 'Throwable::Error'; use Moose;with 'Throwable','Plack::Handler::Stomp::Exceptions::Stringy';
has '+previous_exception' => ( has '+previous_exception' => (
init_arg => 'app_error', init_arg => 'app_error',
); );
has '+message' => ( sub as_string {
default => 'The application died', return 'The application died:'.$_[0]->previous_exception;
); }
} }


{package Plack::Handler::Stomp::Exceptions::Stomp; {package Plack::Handler::Stomp::Exceptions::Stomp;
use Moose;extends 'Throwable::Error'; use Moose;with 'Throwable','Plack::Handler::Stomp::Exceptions::Stringy';
has '+previous_exception' => ( has '+previous_exception' => (
init_arg => 'stomp_error', init_arg => 'stomp_error',
); );
has '+message' => ( sub as_string {
default => 'STOMP protocol/network error', return 'STOMP protocol/network error:'.$_[0]->previous_exception;
); }
} }


{package Plack::Handler::Stomp::Exceptions::OneShot; {package Plack::Handler::Stomp::Exceptions::OneShot;
Expand Down

0 comments on commit 09d4bf8

Please sign in to comment.