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

File-related exceptions. More...

#include <ustl.h>

Inheritance diagram for ustl::file_exception:
ustl::libc_exception ustl::exception

Public Member Functions

 file_exception (const char *operation, const char *filename) 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 %s: %s".
 
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 * Filename (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

File-related exceptions.

Contains the file name. 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