File Exceptions.h

namespace OpenVDS
class Exception : public std::exception

Subclassed by OpenVDS::MessageBufferException< 16384 >, OpenVDS::MessageBufferException< 512 >, OpenVDS::MessageBufferException< BUFFERSIZE >

Public Functions

inline const char *what() const noexcept override
virtual const char *GetErrorMessage() const noexcept = 0
class FatalException : public OpenVDS::MessageBufferException<16384>

Public Functions

inline FatalException(const char *errorMessage)
inline FatalException(const FatalException &other)
inline FatalException &operator=(const FatalException &other)
inline virtual const char *GetErrorMessage() const noexcept override

Private Members

const char *m_errorMessage
class IndexOutOfRangeException : public OpenVDS::MessageBufferException<512>

Public Functions

inline IndexOutOfRangeException(const char *errorMessage)
inline IndexOutOfRangeException(const IndexOutOfRangeException &other)
inline IndexOutOfRangeException &operator=(const IndexOutOfRangeException &other)
inline virtual const char *GetErrorMessage() const noexcept override

Private Members

const char *m_errorMessage
class InvalidArgument : public OpenVDS::MessageBufferException<512>

Public Functions

inline InvalidArgument(const char *errorMessage, const char *parameterName)
inline InvalidArgument(const InvalidArgument &other)
inline InvalidArgument &operator=(const InvalidArgument &other)
inline virtual const char *GetErrorMessage() const noexcept override
inline const char *GetParameterName() const noexcept

Private Members

const char *m_errorMessage
const char *m_parameterName
class InvalidOperation : public OpenVDS::MessageBufferException<512>

Public Functions

inline InvalidOperation(const char *errorMessage)
inline InvalidOperation(const InvalidOperation &other)
inline InvalidOperation &operator=(const InvalidOperation &other)
inline virtual const char *GetErrorMessage() const noexcept override

Private Members

const char *m_errorMessage
template<int BUFFERSIZE>
class MessageBufferException : public OpenVDS::Exception

Public Types

Values:

enumerator MESSAGE_BUFFER_SIZE

Protected Functions

inline MessageBufferException()
MessageBufferException(MessageBufferException const&) = delete
MessageBufferException &operator=(const MessageBufferException &other) = delete
inline const char *AddToBuffer(const char *message)
inline void ClearBuffer()

Private Members

char m_messageBuffer[MESSAGE_BUFFER_SIZE]
int m_usedSize
class ReadErrorException : public OpenVDS::MessageBufferException<512>

Public Functions

inline ReadErrorException(const char *errorMessage, int errorCode)
inline ReadErrorException(const ReadErrorException &other)
inline ReadErrorException &operator=(const ReadErrorException &other)
inline virtual const char *GetErrorMessage() const noexcept override
inline int GetErrorCode() const noexcept

Private Members

const char *m_errorMessage
int m_errorCode