rcolyer.net
RC Lib  Version 202403231100
Public Member Functions | List of all members
RC::ErrorMsgCast Class Reference

A subtype of RC::ErrorMsg for Bad Cast errors. More...

#include <Errors.h>

Inheritance diagram for RC::ErrorMsgCast:
RC::ErrorMsg

Public Member Functions

 ErrorMsgCast (const char *new_err_msg, const char *filename="", int line_number=0)
 The default constructor.
More...
 
- Public Member Functions inherited from RC::ErrorMsg
 ErrorMsg (const char *new_err_msg=NULL, const char *filename=NULL, int line_number=0) noexcept
 The default constructor. More...
 
virtual const char * GetError () const noexcept
 Provides the reason given for the error. More...
 
virtual const char * GetType () const noexcept
 Provides the type of the exception if this is a subclass. More...
 
virtual bool IsError (const char *test_err) const noexcept
 Return true if the the reason for the exception matches test_err. More...
 
virtual const char * what () const noexcept
 Returns a full descriptive error message with reason, source location, and stack trace. More...
 

Detailed Description

A subtype of RC::ErrorMsg for Bad Cast errors.

Constructor & Destructor Documentation

◆ ErrorMsgCast()

RC::ErrorMsgCast::ErrorMsgCast ( const char *  new_err_msg,
const char *  filename = "",
int  line_number = 0 
)
inline

The default constructor.

Use the convenience macro Throw_RC_Type( Cast , "Reason");


The documentation for this class was generated from the following file:
email address
— (c) 2015