FastCDR  Version 1.1.1
FastCDR
BadParamException Class Reference

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

#include <BadParamException.h>

Inherits Exception.

Public Member Functions

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

Static Public Attributes

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

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ BadParamException() [1/3]

Cdr_DllAPI BadParamException ( const char *const &  message)
noexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

◆ BadParamException() [2/3]

Cdr_DllAPI BadParamException ( const BadParamException ex)
noexcept

Default copy constructor.

Parameters
exBadParamException that will be copied.

◆ BadParamException() [3/3]

Cdr_DllAPI BadParamException ( BadParamException &&  ex)
noexcept

Default move constructor.

Parameters
exBadParamException that will be moved.

◆ ~BadParamException()

virtual Cdr_DllAPI ~BadParamException ( )
virtualnoexcept

Default constructor.

Member Function Documentation

◆ operator=() [1/2]

Cdr_DllAPI BadParamException& operator= ( const BadParamException ex)
noexcept

Assigment operation.

Parameters
exBadParamException that will be copied.

◆ operator=() [2/2]

BadParamException& operator= ( BadParamException &&  ex)
noexcept

Assigment operation.

Parameters
exBadParamException that will be moved.

◆ raise()

virtual Cdr_DllAPI void raise ( ) const
virtual

This function throws the object as exception.

Implements Exception.

Member Data Documentation

◆ BAD_PARAM_MESSAGE_DEFAULT

Cdr_DllAPI 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: