Exception classes

pni::io::io_error

class pni::io::io_error : public pni::core::exception

general IO error

This exception is thrown in all situations where IO operations fail. This includes reading and writing of payload- or meta-data.

Public Functions

io_error()

default constructor

io_error(const pni::core::exception_record &i, const pni::core::string &d)

constructor

~io_error()

destructor

Friends

PNIIO_EXPORT std::ostream &operator<<(std::ostream &o, const io_error &e)

output operator

pni::io::object_error

class pni::io::object_error : public pni::core::exception

general error on IO objects

Used for general errors on IO objects. This includes the failure to create or close an object.

Public Functions

object_error()

default constructor

object_error(const pni::core::exception_record &i, const pni::core::string &d)

constructor

~object_error()

destructor

Friends

PNIIO_EXPORT std::ostream &operator<<(std::ostream &o, const object_error &e)

output operator

pni::io::parser_error

class pni::io::parser_error : public pni::core::exception

general parser related error

Raised in case of a general parser error. This exception can be expected to be thrown by all functions and methods that are somehow related to parsing strings.

Public Functions

parser_error()

default constructor

parser_error(const pni::core::exception_record &i, const pni::core::string &d)

constructor

~parser_error()

destructor

Friends

PNIIO_EXPORT std::ostream &operator<<(std::ostream &o, const parser_error &e)

output operator

pni::io::invalid_object_error

class pni::io::invalid_object_error : public pni::core::exception

unexpected invalid object

Raised in cases where an object is unexpectedly in an invalid state. An object uses this exception in cases where the user makes a request on a feature not availabel as the object is in an invalid state.

Public Functions

invalid_object_error()

default constructor

invalid_object_error(const pni::core::exception_record &i, const pni::core::string &d)

constructor

~invalid_object_error()

destructor

Friends

PNIIO_EXPORT std::ostream &operator<<(std::ostream &o, const invalid_object_error &e)

output operator