NAME
    IO::Adapter::ErrorStatus - error handling component.

SYNOPSIS
    Use this module in your "Something" class module like this:

       package Something;
       use IO::Adapter::ErrorStatus qw(errstr error error_set error_clear);

       sub xxx
       {
          if something errors ...
          $self->error_set( why this error occurs ... );
       }

    You use "Something" module like this.

       use Something;
       $obj = new Something;
       $obj->xxx();
       unless ($obj->error) { $obj->do_somting( ...); };

DESCRIPTION
    simple utility functions to manipulate error messages.

METHODS
  error_set($message)
    save $message as an error message.

  error()
    return $message which is saved by "error_set($msg)".

CODING STYLE
    See "http://www.fml.org/software/FNF/" on fml coding style guide.

AUTHOR
    Ken'ichi Fukamachi

COPYRIGHT
    Copyright (C) 2001,2002,2003,2004 Ken'ichi Fukamachi

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

HISTORY
    IO::Adapter::ErrorStatus first appeared in fml8 mailing list driver
    package. See "http://www.fml.org/" for more details.

