Public Member Functions | List of all members
ustl::bad_cast Class Reference

Thrown to indicate a bad dynamic_cast usage. More...

#include <ustl.h>

Inheritance diagram for ustl::bad_cast:

Public Member Functions

virtual const char * what (void) const noexcept override
- Public Member Functions inherited from ustl::exception
virtual void info (string &msgbuf, const char *fmt=nullptr) const noexcept
 Returns a descriptive error message. fmt="%s" Overloads of this functions must set nullptr as the default fmt argument and handle that case to provide a default format string in case the user does not have a localized one. The format string should be shown in the documentation to not require translators to look through code. Also, this function must not throw anything, so you must wrap memory allocation routines (like string::format, for instance) in a try{}catch(...){} block.
virtual void read (istream &is)
 Reads the exception from stream is.
virtual void write (ostream &os) const
 Writes the exception into stream os as an IFF chunk.
void text_write (ostringstream &os) const noexcept
 Writes the exception as text into stream os.
virtual size_t stream_size (void) const noexcept
xfmt_t format (void) const
rcbktrace_t backtrace (void) const

Additional Inherited Members

- Public Types inherited from ustl::exception
typedef const CBacktracercbktrace_t
- Protected Member Functions inherited from ustl::exception
void set_format (xfmt_t fmt)

Detailed Description

Thrown to indicate a bad dynamic_cast usage.

The documentation for this class was generated from the following file:

Generated on Mon Sep 28 2015 17:58:50 for uSTL by Doxygen 1.8.10