FBB::Errno

libbobcat1-dev_2.22.00-x.tar.gz

2005-2012


FBB::Errno(3bobcat)

FBB::Errno(3bobcat)

libbobcat1-dev_2.22.00-x.tar.gz Error handler

2005-2012

NAME

FBB::Errno - Throwable objects handling error conditions

SYNOPSIS

#include <bobcat/errno>
Linking option: -lbobcat

DESCRIPTION

FBB::Errno objects may be thrown in exceptions. As they are also std::ostringstream objects, information may be inserted into them. Facilitities are offered to insert information into, and to throw anonymous FBB::Errno objects.

NAMESPACE

FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.

INHERITS FROM

std::ostringstream, std::exception

CONSTRUCTORS

The copy constructor is available.

MEMBER FUNCTIONS

All members of std::ostringstream and std::exception are available, as FBB::Errno inherits from these classes.

OVERLOADED OPERATORS

The overloaded assignment operator is not available.

STATIC MEMBERS

The following convenience functions can be used for controlled opening of std::istream, std::ostream and std::fstream objects. If opening fails an FBB::Errno(1) exception is thrown containing a short message stating that the named stream could not be opened. If the stream was already open it is closed first.

EXAMPLE

The following example shows the normal use of the manipulators:

    if (exceptionalCondition)
        throw FBB::Errno(1, "Failure") << ": Exceptional condition occurred";
        

FILES

bobcat/errno - defines the class interface

SEE ALSO

bobcat(7)

BUGS

None Reported.

DISTRIBUTION FILES

BOBCAT

Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.

COPYRIGHT

This is free software, distributed under the terms of the GNU General Public License (GPL).

AUTHOR

Frank B. Brokken (f.b.brokken@rug.nl).