NAME
Exception::IO - Thrown when IO operation failed
SYNOPSIS
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' );
};
DESCRIPTION
This class is an Exception::System exception thrown when IO operation failed.
INHERITANCE
Extends
ATTRIBUTES
This class provides new attributes. See Exception::Base for other descriptions.
- message : Str = "Unknown IO exception" {rw}
-
Contains the message of the exception. This class overrides the default value from Exception::Base class.
SEE ALSO
Exception::System, Exception::Base.
BUGS
If you find the bug, please report it.
AUTHOR
Piotr Roszatycki <dexter@cpan.org>
LICENSE
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.