rcolyer.net
RC Lib  Version 201607061602
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...
 
virtual ~ErrorMsgCast () noexcept
 The destructor.
 
 ErrorMsgCast (const ErrorMsgCast &)=default
 Default copy constructor.
 
 ErrorMsgCast (ErrorMsgCast &&)=default
 Default move constructor.
 
ErrorMsgCastoperator= (const ErrorMsgCast &)&=default
 Default copy assignment operator.
 
ErrorMsgCastoperator= (ErrorMsgCast &&)&=default
 Default move assignment operator.
 
- 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 ~ErrorMsg () noexcept
 The destructor.
 
 ErrorMsg (const ErrorMsg &)=default
 Default copy constructor.
 
 ErrorMsg (ErrorMsg &&)=default
 Default move constructor.
 
ErrorMsgoperator= (const ErrorMsg &)&=default
 Default copy assignment operator.
 
ErrorMsgoperator= (ErrorMsg &&)&=default
 Default move assignment operator.
 
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

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