Permalink
Browse files

kill Throwable::Error

  • Loading branch information...
1 parent 2ef703c commit 09d4bf898938d7ce1e2ed0c74ddfaeda99efa4a5 @dakkar committed Feb 28, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/Plack/Handler/Stomp/Exceptions.pm
@@ -19,23 +19,23 @@ package Plack::Handler::Stomp::Exceptions;
}
{package Plack::Handler::Stomp::Exceptions::AppError;
- use Moose;extends 'Throwable::Error';
+ use Moose;with 'Throwable','Plack::Handler::Stomp::Exceptions::Stringy';
has '+previous_exception' => (
init_arg => 'app_error',
);
- has '+message' => (
- default => 'The application died',
- );
+ sub as_string {
+ return 'The application died:'.$_[0]->previous_exception;
+ }
}
{package Plack::Handler::Stomp::Exceptions::Stomp;
- use Moose;extends 'Throwable::Error';
+ use Moose;with 'Throwable','Plack::Handler::Stomp::Exceptions::Stringy';
has '+previous_exception' => (
init_arg => 'stomp_error',
);
- has '+message' => (
- default => 'STOMP protocol/network error',
- );
+ sub as_string {
+ return 'STOMP protocol/network error:'.$_[0]->previous_exception;
+ }
}
{package Plack::Handler::Stomp::Exceptions::OneShot;

0 comments on commit 09d4bf8

Please sign in to comment.