FBB::Exception(3bobcat)

Error handler
(libbobcat-dev_4.08.03-x.tar.gz)

2005-2018

NAME

FBB::Exception - std::exception objects acception stream insertions

SYNOPSIS

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

DESCRIPTION

FBB::Exception objects derived from std::exception, but accept stream insertions. Their intended use consists of throwing an anonymous object, into which the text of the std::exception::what message has been inserted.

Exception exceptions are thrown by several Bobcat classes. These classes are Arg, ArgConfig, BigInt, Cgi, Cidr, ClientSocket, CmdFinderBase, ConfigFile, DateTime, DecryptBuf, DigestBuf, EncryptBuf, Fork, GetHostent, Glob, HMacBuf, Hostname, LocalClientSocket, LocalServerSocket, LocalSocketBase, Log, MailHeaders, Mbuf, Milter, Mstream, OFoldStreambuf, OneKey, Pattern, Pipe, Process, Redirector, Selector, ServerSocket, Signal, SocketBase, Stat, TempStream, User, Xpointer

NAMESPACE

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

INHERITS FROM

std::exception

ENUMERATION

The enumeration Protection is used by the member protection described below. The enumeration has two values:

CONSTRUCTORS

Move and copy constructors are available.

MEMBER FUNCTIONS

All members of std::exception are available, as FBB::Exception inherits from this class.

OVERLOADED OPERATORS

The overloaded assignment and move assignment operators are available.

STATIC MEMBERS

The following convenience functions can be used for controlled opening of stream-type objects, like std::ofstream and std::ifstream. These stream-type objects must support open and close members, like those provided by std::ifstream and std::ofstream.

If the stream was already open it is first closed.

If opening fails an FBB::Exception exception is thrown containing a short message stating that the named stream could not be opened.

MANIPULATOR

The following manipulator (which is not part of the FBB::Exception, class, but is defined in the FBB namespace) can be inserted into the FBB::Exception object:

EXAMPLE


    if (exceptionalCondition)
        throw FBB::Exception(1) << "Exceptional condition occurred";
        

FILES

bobcat/exception - 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).