FBB::Errno

FBB::Errno

libbobcat1-dev_2.02.03-x.tar.gz

2005-2009


FBB::Errno(3bobcat)

FBB::Errno(3bobcat)

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

2005-2009

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.

MANIPULATORS

The following manipulators (which are not part of the FBB::Errno, class, but are defined in the FBB namespace) can be inserted into the FBB::Errno object:

EXAMPLE

The following example shows the normal use of the manipulators:

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

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).