debian man page for mojo::exception

Query: mojo::exception

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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

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, defaults to the value of "MOJO_EXCEPTION_VERBOSE" or 0.
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. "to_string" my $string = $e->to_string; my $string = "$e"; Render exception with context. "trace" $e = $e->trace; $e = $e->trace(2); Store stacktrace.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Exception(3pm)
Related Man Pages
mojo::bytestream(3pm) - debian
mojo::home(3pm) - debian
mojo::cookie::response(3pm) - debian
mojo::ioloop::delay(3pm) - debian
mojo::transaction::http(3pm) - debian
Similar Topics in the Unix Linux Community
How to parse..
Need help in parsing text file contents
Exception at interrupt level VxWorks5.5 MPC880
Shell Scripting
Split file and do the math