pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
eprosima::fastcdr::exception::BadParamException Class Reference

Detailed Description

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

Definition at line 27 of file BadParamException.h.

#include <BadParamException.h>

Inheritance diagram for eprosima::fastcdr::exception::BadParamException:
[legend]

Public Member Functions

Cdr_DllAPI BadParamException (const char *const &message) noexcept
 Default constructor.
 
Cdr_DllAPI BadParamException (const BadParamException &ex) noexcept
 Default copy constructor.
 
Cdr_DllAPI BadParamException (BadParamException &&ex) noexcept
 Default move constructor.
 
Cdr_DllAPI BadParamExceptionoperator= (const BadParamException &ex) noexcept
 Assigment operation.
 
BadParamExceptionoperator= (BadParamException &&ex) noexcept
 Assigment operation.
 
virtual Cdr_DllAPI ~BadParamException () noexcept
 Default destructor.
 
Cdr_DllAPI void raise () const override
 This function throws the object as exception.
 
virtual Cdr_DllAPI const char * what () const noexcept override
 This function returns the error message.
 
what (T... args)
 

Static Public Attributes

static Cdr_DllAPI const char *const BAD_PARAM_MESSAGE_DEFAULT = "Bad parameter"
 Default message used in the library.
 

Private Attributes

const char * m_message
 

Constructor & Destructor Documentation

◆ BadParamException() [1/3]

BadParamException::BadParamException ( const char *const &  message)
noexcept

Default constructor.

Parameters
messageAn error message. This message pointer is copied.

Definition at line 21 of file BadParamException.cpp.

◆ BadParamException() [2/3]

BadParamException::BadParamException ( const BadParamException ex)
noexcept

Default copy constructor.

Parameters
exBadParamException that will be copied.

Definition at line 27 of file BadParamException.cpp.

◆ BadParamException() [3/3]

BadParamException::BadParamException ( BadParamException &&  ex)
noexcept

Default move constructor.

Parameters
exBadParamException that will be moved.

Definition at line 33 of file BadParamException.cpp.

◆ ~BadParamException()

BadParamException::~BadParamException ( )
virtualnoexcept

Default destructor.

Definition at line 63 of file BadParamException.cpp.

Member Function Documentation

◆ operator=() [1/2]

BadParamException & BadParamException::operator= ( BadParamException &&  ex)
noexcept

Assigment operation.

Parameters
exBadParamException that will be moved.

Definition at line 51 of file BadParamException.cpp.

◆ operator=() [2/2]

BadParamException & BadParamException::operator= ( const BadParamException ex)
noexcept

Assigment operation.

Parameters
exBadParamException that will be copied.

Definition at line 39 of file BadParamException.cpp.

◆ raise()

void BadParamException::raise ( ) const
overridevirtual

This function throws the object as exception.

Implements eprosima::fastcdr::exception::Exception.

Definition at line 67 of file BadParamException.cpp.

◆ what()

const char * Exception::what ( ) const
overridevirtualnoexceptinherited

This function returns the error message.

Returns
The error message.

Definition at line 55 of file Exception.cpp.

Member Data Documentation

◆ BAD_PARAM_MESSAGE_DEFAULT

const char *const BadParamException::BAD_PARAM_MESSAGE_DEFAULT = "Bad parameter"
static

Default message used in the library.

Definition at line 78 of file BadParamException.h.

◆ m_message

const char* eprosima::fastcdr::exception::Exception::m_message
privateinherited

Definition at line 90 of file Exception.h.


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