Skip to content

Commit 7b75cee

Browse files
authored
Refactor of Owner and Lessee ptrs (#231)
* Refs #14325: Refactor of Owner and Lessee ptrs Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14325: Reorder headers Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14325: Apply suggestions Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14325: uncrustify Signed-off-by: jparisu <javierparis@eprosima.com>
1 parent 99ea607 commit 7b75cee

13 files changed

Lines changed: 1329 additions & 517 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2022 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+
/**
16+
* @file ValueAccessException.hpp
17+
*/
18+
19+
#ifndef _DDSROUTERUTILS_EXCEPTIONS_VALUEACCESSEXCEPTION_HPP_
20+
#define _DDSROUTERUTILS_EXCEPTIONS_VALUEACCESSEXCEPTION_HPP_
21+
22+
#include <ddsrouter_utils/exception/Exception.hpp>
23+
24+
namespace eprosima {
25+
namespace ddsrouter {
26+
namespace utils {
27+
28+
/**
29+
* @brief Exception thrown when trying to reference a non valid value.
30+
*
31+
* Most common case is when trying to access an already erased pointer.
32+
*/
33+
class ValueAccessException : public Exception
34+
{
35+
// Use parent class constructors
36+
using Exception::Exception;
37+
};
38+
39+
} // namespace utils
40+
} // namespace ddsrouter
41+
} // namespace eprosima
42+
43+
#endif // _DDSROUTERUTILS_EXCEPTIONS_VALUEACCESSEXCEPTION_HPP_
44+

0 commit comments

Comments
 (0)