4.4. The State_Error Class

Refer to Section 4.2 for the public data members and member functions which are inherited by State_Error.


Figure 4-3. class State_Error

namespace Oracle
{
    struct State_Error: public Error
    {
        // constructors
        State_Error(
	    const string&,
            const string&,
            const string& = "",
            const int = 0);
    };
}

4.4.1. Public Member Functions

4.4.1.1. Constructors

State_Error(const string& module_name, const string& error_message, const string& file_name, const int line_number);

When you throw a State_Error object, you specify the module_name and the error_message, and optionally the file_name and line_number. You may specify the file name and line number using the pre-defined macros __FILE__ and __LINE__.

If you wish to provide addtional information, such as the names and values of local variables, you may write to the desc data member (Section 4.2.2.5) as you would any output stream.