|
Veethree D7 SDK
|
The libio_error class.
A std::system_error specialisation that allows to take a vsdk::io::io_module and vsdk::io::io_error values in the constructors. Also provides more information allowing to locate where the error happened (submodule:operation).
#include <libio_error.h>
Public Member Functions | |
| libio_error (io_module module, std::error_code ec, const std::string &message="", source_location loc=source_location::current()) | |
| Class constructor. | |
| libio_error (io_module module, io_error ec, const std::string &message="", source_location loc=source_location::current()) | |
| Class constructor. | |
| libio_error (io_module module, int ev, const std::error_category &ecat, const std::string &message="", source_location loc=source_location::current()) | |
| Class constructor. | |
| const char * | what () const noexcept override |
| Provide a string description for this error. | |
| const module_value & | module () const |
| Module object based on io_module. | |
| const source_location & | location () const |
| Exception location. | |
The libio_error class.
A std::system_error specialisation that allows to take a vsdk::io::io_module and vsdk::io::io_error values in the constructors. Also provides more information allowing to locate where the error happened (submodule:operation).
|
explicit |
Class constructor.
| module | The io_module where the error happened. |
| ec | A std::error_code value, see standard documentation for more information. |
| message | User message. |
| loc | A source_location value, use it as a default parameter. |
Sample code:
|
explicit |
Class constructor.
| module | The io_module where the error happened. |
| ec | The io_error describing the error. |
| message | User message. |
| loc | A source_location value, use it as a default parameter. |
Sample code:
|
explicit |
Class constructor.
| module | The io_module where the error happened. |
| ev | Generic error value. |
| ecat | A category derived from std::error_category. |
| message | User message. |
| loc | A source_location value, use it as a default parameter. |
Sample code:
| const source_location & vsdk::io::libio_error::location | ( | ) | const |
Exception location.
Sample code:
| const module_value & vsdk::io::libio_error::module | ( | ) | const |
Module object based on io_module.
Sample code:
|
overridenoexcept |
Provide a string description for this error.
Sample code: