Skip to content

Commit

Permalink
mention how renderers are supposed to handle exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 23, 2012
1 parent 5f7ee1a commit d7e14ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -896,6 +896,9 @@ do is add a new C<handler>.
# This part is up to you and your template system :)
...

# Just die or throw a Mojo::Exception object for errors
Mojo::Exception->new('Something went wrong')->throw;

# Pass the rendered result back to the renderer
$$output = 'The rendered result';

Expand Down

0 comments on commit d7e14ee

Please sign in to comment.