iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
default_error_handler.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 by Apex.AI Inc. All rights reserved.
2// Copyright (c) 2025 Contributors to the Eclipse Foundation
3//
4// See the NOTICE file(s) distributed with this work for additional
5// information regarding copyright ownership.
6//
7// This program and the accompanying materials are made available under the
8// terms of the Apache Software License 2.0 which is available at
9// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
10// which is available at https://opensource.org/licenses/MIT.
11//
12// SPDX-License-Identifier: Apache-2.0 OR MIT
13
14#ifndef IOX2_BB_REPORTING_ERROR_REPORTING_CUSTOM_DEFAULT_ERROR_HANDLER_HPP
15#define IOX2_BB_REPORTING_ERROR_REPORTING_CUSTOM_DEFAULT_ERROR_HANDLER_HPP
16
20
21namespace iox2 {
22namespace legacy {
23namespace er {
24
30 public:
32 ~DefaultErrorHandler() override = default;
37
39 void onPanic() override {
40 }
41
44 void onReportError(ErrorDescriptor /* desc */) override {
45 }
46
49 void onReportViolation(ErrorDescriptor /* desc */) override {
50 }
51};
52
53} // namespace er
54} // namespace legacy
55} // namespace iox2
56
57#endif // IOX2_BB_REPORTING_ERROR_REPORTING_CUSTOM_DEFAULT_ERROR_HANDLER_HPP
Defines the default reaction of dynamic error handling. The default reaction is to do nothing apart f...
DefaultErrorHandler(DefaultErrorHandler &&)=delete
DefaultErrorHandler & operator=(const DefaultErrorHandler &)=delete
void onPanic() override
Defines the reaction on panic.
void onReportViolation(ErrorDescriptor) override
Defines the reaction on violation.
DefaultErrorHandler(const DefaultErrorHandler &)=delete
DefaultErrorHandler & operator=(DefaultErrorHandler &&)=delete
void onReportError(ErrorDescriptor) override
Defines the reaction on error.
Defines the dynamic error handling interface (i.e. changeable at runtime).
Contains all required information about the error. Can be extended as needed without breaking the int...