Fast CDR  Version 1.1.1
Fast CDR
Loading...
Searching...
No Matches
BadParamException.h
1// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef _FASTCDR_EXCEPTIONS_BADPARAMEXCEPTION_H_
16#define _FASTCDR_EXCEPTIONS_BADPARAMEXCEPTION_H_
17
18#include "Exception.h"
19
20namespace eprosima {
21namespace fastcdr {
22namespace exception {
28{
29public:
30
37 const char* const& message) noexcept;
38
45 const BadParamException& ex) noexcept;
46
53 BadParamException&& ex) noexcept;
54
61 const BadParamException& ex) noexcept;
62
69 BadParamException&& ex) noexcept;
70
72 virtual Cdr_DllAPI ~BadParamException() noexcept;
73
75 virtual Cdr_DllAPI void raise() const;
76
78 static Cdr_DllAPI const char* const BAD_PARAM_MESSAGE_DEFAULT;
79};
80} //namespace exception
81} //namespace fastcdr
82} //namespace eprosima
83#endif // _FASTCDR_EXCEPTIONS_BADPARAMEXCEPTION_H_
This class is thrown as an exception when a invalid parameter was being serialized.
Definition: BadParamException.h:28
Cdr_DllAPI BadParamException & operator=(const BadParamException &ex) noexcept
Assigment operation.
virtual Cdr_DllAPI void raise() const
This function throws the object as exception.
Cdr_DllAPI BadParamException(const BadParamException &ex) noexcept
Default copy constructor.
static Cdr_DllAPI const char *const BAD_PARAM_MESSAGE_DEFAULT
Default message used in the library.
Definition: BadParamException.h:78
Cdr_DllAPI BadParamException(BadParamException &&ex) noexcept
Default move constructor.
Cdr_DllAPI BadParamException(const char *const &message) noexcept
Default constructor.
virtual Cdr_DllAPI ~BadParamException() noexcept
Default constructor.
This abstract class is used to create exceptions.
Definition: Exception.h:30
Definition: Cdr.h:35