Piotr Roszatycki > Fatal-Exception-0.05 > Exception::Fatal

Download:
Fatal-Exception-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Exception::Fatal - Thrown when core function has a fatal error

SYNOPSIS ^

  use Exception::Fatal;

  eval {
      open my $fh, '/etc/passwd', '+badmode';
  };
  if ($@) {
      my $e = Exception::Fatal->catch;
      $e->throw( message => 'Cannot open' );
  };

DESCRIPTION ^

This class is an Exception::Died exception thrown when core function has a trappable fatal error.

BASE CLASSES ^

ATTRIBUTES ^

This class provides new attributes. See Exception::Base for other descriptions.

message : Str = "Unknown function failed" {rw}

Contains the message of the exception. This class overrides the default value from Exception::Base class.

SEE ALSO ^

Exception::Died, Exception::Fatal, Fatal::Exception.

BUGS ^

If you find the bug, please report it.

AUTHOR ^

Piotr Roszatycki <dexter@debian.org>

LICENSE ^

Copyright (C) 2008 by Piotr Roszatycki <dexter@debian.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: