diff options
| author | fukachan <fukachan> | 2001-03-20 09:44:57 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-03-20 09:44:57 +0000 |
| commit | db1c5797b32dd075bcf455c5300ed82f9b22b8aa (patch) | |
| tree | cd9c9f2524dcf5a063f1345b53e8681451ab6d51 /fml/lib/IO/Adapter/File.pm | |
| parent | 2198c4ce73b096d94ac6cbc591c86eca0a73b054 (diff) | |
| download | fml8-db1c5797b32dd075bcf455c5300ed82f9b22b8aa.tar.gz fml8-db1c5797b32dd075bcf455c5300ed82f9b22b8aa.tar.bz2 fml8-db1c5797b32dd075bcf455c5300ed82f9b22b8aa.zip | |
rewritten to ErrorMessages::Status module for unification of error
buffer handling.
Diffstat (limited to 'fml/lib/IO/Adapter/File.pm')
| -rw-r--r-- | fml/lib/IO/Adapter/File.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fml/lib/IO/Adapter/File.pm b/fml/lib/IO/Adapter/File.pm index b0378933..cd647134 100644 --- a/fml/lib/IO/Adapter/File.pm +++ b/fml/lib/IO/Adapter/File.pm @@ -13,6 +13,7 @@ package IO::Adapter::File; use strict; use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD); use Carp; +use ErrorMessages::Status qw(error_set error error_reset); =head1 NAME @@ -106,7 +107,7 @@ sub _read_open return $fh; } else { - $self->_error_reason("Error: cannot open file=$file flag=$flag"); + $self->error_set("Error: cannot open file=$file flag=$flag"); return undef; } } @@ -261,7 +262,7 @@ sub add $fh->close; } else { - $self->_error_reason("Error: cannot open file=$self->{ _file }"); + $self->error_set("Error: cannot open file=$self->{ _file }"); return undef; } @@ -295,7 +296,7 @@ sub delete $wh->close; } else { - $self->_error_reason("Error: cannot open file=$self->{ _file }"); + $self->error_set("Error: cannot open file=$self->{ _file }"); return undef; } } @@ -330,7 +331,7 @@ sub replace $wh->close; } else { - $self->_error_reason("Error: cannot open file=$self->{ _file }"); + $self->error_set("Error: cannot open file=$self->{ _file }"); return undef; } } |
