Navigation Menu

Skip to content

Commit

Permalink
better Mojo::Exception synopsis example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 16, 2012
1 parent a8f6368 commit 1a0d0f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Changes
@@ -1,8 +1,11 @@

3.43 2012-09-17
- Improved documentation.

3.42 2012-09-16
- Improved Hypnotoad to clean up old PID files.
- Improved documentation.
- Imptoved tests.
- Improved tests.

3.41 2012-09-13
- Improved Mojo::EventEmitter to warn about failed error events.
Expand Down
4 changes: 4 additions & 0 deletions lib/Mojo/Exception.pm
Expand Up @@ -150,8 +150,12 @@ Mojo::Exception - Exceptions with context
use Mojo::Exception;
# Throw exception
Mojo::Exception->throw('Not again!');
# Customize exception
die Mojo::Exception->new('Not again!')->trace(2)->verbose(1);
=head1 DESCRIPTION
L<Mojo::Exception> is a container for exceptions with context information.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -38,7 +38,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.42';
our $VERSION = '3.43';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit 1a0d0f1

Please sign in to comment.