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

Stream bounds checking. More...

#include <ustl.h>

Inheritance diagram for ustl::stream_bounds_exception:
ustl::libc_exception ustl::exception

Public Member Functions

 stream_bounds_exception (const char *operation, const char *type, uoff_t offset, size_t expected, size_t remaining) noexcept
 Initializes the empty object. operation is the function that returned the error code.
 
virtual const char * what (void) const noexcept override
 
virtual void info (string &msgbuf, const char *fmt=nullptr) const noexcept override
 Returns a descriptive error message. fmt="%s stream %s: @%u: expected %u, available %u";.
 
virtual void read (istream &is) override
 Reads the exception from stream is.
 
virtual void write (ostream &os) const override
 Writes the exception into stream os.
 
virtual size_t stream_size (void) const noexcept override
 Returns the size of the written exception.
 
const char * TypeName (void) const
 
uoff_t Offset (void) const
 
size_t Expected (void) const
 
size_t Remaining (void) const
 
- Public Member Functions inherited from ustl::libc_exception
 libc_exception (const char *operation) noexcept
 Initializes the empty object. operation is the function that returned the error code.
 
 libc_exception (const libc_exception &v) noexcept
 Copies object v.
 
const libc_exceptionoperator= (const libc_exception &v)
 Copies object v.
 
int Errno (void) const
 
const char * Operation (void) const
 
- Public Member Functions inherited from ustl::exception
void text_write (ostringstream &os) const noexcept
 Writes the exception as text into stream os.
 
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

Stream bounds checking.

Only thrown in debug builds unless you say otherwise in config.h This is a uSTL extension.


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

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