Mojo::Exception man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Exception(3)    User Contributed Perl Documentation   Mojo::Exception(3)

NAME
       Mojo::Exception - Exceptions With Context

SYNOPSIS
	 use Mojo::Exception;
	 my $e = Mojo::Exception->new;

DESCRIPTION
       Mojo::Exception is a container for exceptions with context information.

ATTRIBUTES
       Mojo::Exception implements the following attributes.

   "frames"
	 my $frames = $e->frames;
	 $e	    = $e->frames($frames);

       Stacktrace.

   "line"
	 my $line = $e->line;
	 $e	  = $e->line([3, 'foo']);

       The line where the exception occured.

   "lines_after"
	 my $lines = $e->lines_after;
	 $e	   = $e->lines_after([[1, 'bar'], [2, 'baz']]);

       Lines after the line where the exception occured.

   "lines_before"
	 my $lines = $e->lines_before;
	 $e	   = $e->lines_before([[4, 'bar'], [5, 'baz']]);

       Lines before the line where the exception occured.

   "message"
	 my $message = $e->message;
	 $e	     = $e->message('Oops!');

       Exception message.

   "raw_message"
	 my $message = $e->raw_message;
	 $e	     = $e->raw_message('Oops!');

       Raw unprocessed exception message.

   "verbose"
	 my $verbose = $e->verbose;
	 $e	     = $e->verbose(1);

       Activate verbose rendering.

METHODS
       Mojo::Exception inherits all methods from Mojo::Base and implements the
       following new ones.

   "new"
	 my $e = Mojo::Exception->new('Oops!');
	 my $e = Mojo::Exception->new('Oops!', $files, $name);

       Construct a new Mojo::Exception object.

   "throw"
	 Mojo::Exception->throw('Oops!');
	 Mojo::Exception->throw('Oops!', $files, $name);

       Throw exception with stacktrace.

   "trace"
	 $e = $e->trace;

       Perform stacktrace.

   "to_string"
	 my $string = $e->to_string;
	 my $string = "$e";

       Render exception with context.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-01		    Mojo::Exception(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net