std::exception(3cxx)std::exception(3cxx)NAME
std::exception -
SYNOPSIS
Inherited by __gnu_cxx::__concurrence_broadcast_error, __gnu_cxx::__concurrence_lock_error, __gnu_cxx::__concurrence_unlock_error,
__gnu_cxx::__concurrence_wait_error, __gnu_cxx::forced_error, __gnu_cxx::recursive_init_error, std::bad_alloc, std::bad_cast,
std::bad_exception, std::bad_function_call, std::bad_typeid, std::bad_weak_ptr, std::ios_base::failure, std::logic_error, and
std::runtime_error.
Public Member Functions
virtual const char * what () const throw ()
Detailed Description
Base class for all library exceptions.
This is the base class for all exceptions thrown by the standard library, and by certain language expressions. You are free to derive your
own exception classes, or use a different hierarchy, or to throw non-class data (e.g., fundamental types).
Definition at line 61 of file exception.
Member Function Documentation
virtual const char* std::exception::what () const throw () [virtual]
Returns a C-style character string describing the general cause of the current error.
Reimplemented in std::ios_base::failure, std::bad_typeid, std::bad_cast, std::runtime_error, std::future_error, std::bad_exception,
std::logic_error, std::bad_alloc, and std::bad_weak_ptr.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 std::exception(3cxx)
Hello,
Looking at the asio.sourceforge.net library, I found a tutorial to develop simple client and server programs. Below I am pasting the client and the server. On my Fedora Core 4, I can compile the two programs(client is 'a' and server is 'daytime', but I have no idea on how to test them... ... (8 Replies)
Hello,
I am strugglign with the following fastcgi C++ program with access to a postgresql database through the SOCI library. All the components work individually properlyy but the combination does not. The program compiles fine but the Apapche 2.2 error log files contains:
FastCGI: comm... (0 Replies)
Hi,
Based on the following example in the Boost C++ website:
www. boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp]doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp
I tried to create a similar TCP server that waits to accept a client connection... (0 Replies)
Hi
I tried googling about it and I couldn't really find a solid answer. Why is the compiler missing the exception class when it seems to be a standard class?
The code is here:
//Rijndael.h
#ifndef __RIJNDAEL_H__
#define __RIJNDAEL_H__
#include <exception>
#include <cstring>
using... (6 Replies)
Hi,
I am designing the look-alike C++ string class:
#include <iostream>
#include <cstring>
#include <exception>
#include <new>
#define ALLOC(N) (char*) new char
#define DELETE(P) delete ((char*)(P))
class String {
public:
// conversions: to C-like type char
operator const... (2 Replies)