Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

kill Throwable::Error

  • Loading branch information...
commit 09d4bf898938d7ce1e2ed0c74ddfaeda99efa4a5 1 parent 2ef703c
@dakkar authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/Plack/Handler/Stomp/Exceptions.pm
View
16 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;
Please sign in to comment.
Something went wrong with that request. Please try again.