
Exception::IO - Thrown when IO operation failed

use warnings FATAL => 'all';
use Exception::Fatal;
use Exception::IO;
my $status = eval {
open my $fh, '/etc/passwd', '+badmode';
};
if ($@ or not defined $status) {
my $e = $@ ? Exception::Fatal->catch : Exception::IO->new;
$e->throw( message => 'Cannot open' );
};

This class is an Exception::System exception thrown when IO operation failed.


This class provides new attributes. See Exception::Base for other descriptions.
Contains the message of the exception. This class overrides the default value from Exception::Base class.

Exception::System, Exception::Base.

If you find the bug, please report it.

Piotr Roszatycki <dexter@cpan.org>

Copyright (C) 2008, 2009 by Piotr Roszatycki <dexter@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.