Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

exception


Standard Exception

Summary

A class that supports logic and runtime errors.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <exception>
class exception;

Description

The class exception defines the base class for the types of objects thrown as exceptions by Standard C++ Library components and some expressions. This class is used to report errors detected during program execution. Users can also use these exceptions to report errors in their own programs.

Interface

Constructors

exception() 
throw();
exception(const exception&) 
throw();

Destructors

virtual 
~exception()
throw();

Operators

exception& 
operator=(const exception&) 
throw();

Member Functions

virtual const char* 
what()const 
throw();

Constructors for Derived Classes

logic_error::logic_error(const string& what_arg);
domain_error::domain_error(const string& what_arg);
invalid_argument::invalid_argument(const string& what_arg);
length_error::length_error(const string& what_arg);
out_of_range::out_of_range(const string& what_arg);
runtime_error::runtime_error(const string& what_arg);
range_error::range_error(const string& what_arg);
overflow_error::overflow_error(const string& what_arg);
underflow_error::underflow_error(
                    const string& what_arg);

Example



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998