Fast CDR  Version 1.1.0
Fast CDR
Loading...
Searching...
No Matches
BadParamException Class Reference

This class is thrown as an exception when a invalid parameter was being serialized. More...

#include <BadParamException.h>

Inheritance diagram for BadParamException:

Public Member Functions

 BadParamException (const char *const &message) noexcept
 Default constructor.
 
 BadParamException (const BadParamException &ex) noexcept
 Default copy constructor.
 
 BadParamException (BadParamException &&ex) noexcept
 Default move constructor.
 
BadParamExceptionoperator= (const BadParamException &ex) noexcept
 Assigment operation.
 
BadParamExceptionoperator= (BadParamException &&ex) noexcept
 Assigment operation.
 
virtual ~BadParamException () noexcept
 Default constructor.
 
virtual void raise () const
 This function throws the object as exception.
 
- Public Member Functions inherited from Exception
virtual ~Exception () noexcept
 Default destructor.
 
virtual const char * what () const noexcept override
 This function returns the error message.
 

Static Public Attributes

static const char *const BAD_PARAM_MESSAGE_DEFAULT
 Default message used in the library.
 

Additional Inherited Members

- Protected Member Functions inherited from Exception
 Exception (const char *const &message) noexcept
 Default constructor.
 
 Exception (const Exception &ex) noexcept
 Default copy constructor.
 
 Exception (Exception &&ex) noexcept
 Default move constructor.
 
Exceptionoperator= (const Exception &ex) noexcept
 Assigment operation.
 
Exceptionoperator= (Exception &&ex) noexcept
 Assigment operation.
 

Detailed Description

This class is thrown as an exception when a invalid parameter was being serialized.

Constructor & Destructor Documentation

◆ BadParamException() [1/3]

BadParamException ( const char *const &  message)
noexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

◆ BadParamException() [2/3]

BadParamException ( const BadParamException ex)
noexcept

Default copy constructor.

Parameters
exBadParamException that will be copied.

◆ BadParamException() [3/3]

BadParamException ( BadParamException &&  ex)
noexcept

Default move constructor.

Parameters
exBadParamException that will be moved.

◆ ~BadParamException()

virtual ~BadParamException ( )
virtualnoexcept

Default constructor.

Member Function Documentation

◆ operator=() [1/2]

BadParamException & operator= ( BadParamException &&  ex)
noexcept

Assigment operation.

Parameters
exBadParamException that will be moved.

◆ operator=() [2/2]

BadParamException & operator= ( const BadParamException ex)
noexcept

Assigment operation.

Parameters
exBadParamException that will be copied.

◆ raise()

virtual void raise ( ) const
virtual

This function throws the object as exception.

Implements Exception.

Member Data Documentation

◆ BAD_PARAM_MESSAGE_DEFAULT

const char* const BAD_PARAM_MESSAGE_DEFAULT
static

Default message used in the library.


The documentation for this class was generated from the following file: