Refer to Section 4.2 for the public data members and member functions which are inherited by Type_Error.
Figure 4-4. class Type_Error
namespace Oracle
{
struct Type_Error: public Error
{
// constructors
Type_Error(
const string&,
const string&,
const string& = "",
const int = 0);
};
}Type_Error(const string& module_name, const string& error_message, const string& file_name, const int line_number);
When you throw a Type_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.