errors::unexpected_eof

Defined in header <mgs/errors/unexpected_eof.hpp>.

class unexpected_eof;

Defines a type of object to be thrown as an exception. It reports errors happening when end of input was reached before decoding ended.

Inherits from decode_error.


Inherited from std::runtime_error

Constructors

explicit unexpected_eof(std::string const& what_arg); // 1
explicit unexpected_eof(char const* what_arg);        // 2

Constructs the exception object with what_arg as explanatory string that can be accessed through what().

Parameters

what_arg – explanatory string

Exceptions

May throw std::bad_alloc.

Inherited from std::exception

Member functions

(destructor) [virtual]

Destroys the exception object

what [virtual]

Returns an explanatory string