Bayesian Filtering Library  Generated from SVN r
Classes | Macros | Typedefs | Functions

Classes

class  exception
 Base class for all library exceptions. More...
 
class  bad_exception
 
class  bad_alloc
 Exception possibly thrown by new.bad_alloc (or classes derived from it) is used to report allocation errors from the throwing forms of new. More...
 

Macros

#define __cpp_lib_uncaught_exceptions   201411
 
#define _GLIBXX_STREAMBUF   1
 
#define _STREAMBUF_TCC   1
 
#define _BASIC_IOS_H   1
 
#define _LOCALE_FACETS_H   1
 
#define _STREAMBUF_ITERATOR_H   1
 

Typedefs

typedef void(* terminate_handler) ()
 If you write a replacement terminate handler, it must be of this type.
 
typedef void(* unexpected_handler) ()
 If you write a replacement unexpected handler, it must be of this type.
 

Functions

virtual const char * what () const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT
 
terminate_handler set_terminate (terminate_handler) _GLIBCXX_USE_NOEXCEPT
 Takes a new handler function as an argument, returns the old function.
 
void terminate () _GLIBCXX_USE_NOEXCEPT __attribute__((__noreturn__))
 
unexpected_handler set_unexpected (unexpected_handler) _GLIBCXX_USE_NOEXCEPT
 Takes a new handler function as an argument, returns the old function.
 
void unexpected () __attribute__((__noreturn__))
 
bool uncaught_exception () _GLIBCXX_USE_NOEXCEPT __attribute__((__pure__))
 
int uncaught_exceptions () _GLIBCXX_USE_NOEXCEPT __attribute__((__pure__))
 The number of uncaught exceptions.
 
_GLIBCXX_BEGIN_NAMESPACE_VERSION void __verbose_terminate_handler ()
 A replacement for the standard terminate_handler which prints more information about the terminating exception (if any) on stderr. More...
 

Detailed Description

Classes and functions for reporting errors via exception classes.

Function Documentation

◆ __verbose_terminate_handler()

_GLIBCXX_BEGIN_NAMESPACE_VERSION void BFL::__gnu_cxx::__verbose_terminate_handler ( )

A replacement for the standard terminate_handler which prints more information about the terminating exception (if any) on stderr.

Call

std::set_terminate(__gnu_cxx::__verbose_terminate_handler)

to use. For more info, see http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt02ch06s02.html

In 3.4 and later, this is on by default.

◆ terminate()

void BFL::std::terminate ( )

The runtime will call this function if exception handling must be abandoned for any reason. It can also be called by the user.

◆ uncaught_exception()

bool BFL::std::uncaught_exception ( )

[18.6.4]/1: 'Returns true after completing evaluation of a throw-expression until either completing initialization of the exception-declaration in the matching handler or entering unexpected() due to the throw; or after entering terminate() for any reason other than an explicit call to terminate(). [Note: This includes stack unwinding [15.2]. end note]'

2: 'When uncaught_exception() is true, throwing an exception can result in a call of terminate() (15.5.1).'

◆ unexpected()

void BFL::std::unexpected ( )

The runtime will call this function if an exception is thrown which violates the function's exception specification.

◆ what()

virtual const char* what ( ) const
virtual

Returns a C-style character string describing the general cause of the current error.

Reimplemented in bad_alloc, and bad_exception.