Publishing 2020.1 content
[platform/upstream/dldt.git] / inference-engine / include / ie_error.hpp
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 /**
6  * @brief A header file for a plugin logging mechanism
7  *
8  * @file ie_error.hpp
9  */
10 #pragma once
11
12 namespace InferenceEngine {
13 /**
14  * @brief This class represents a custom error listener.
15  *
16  * Plugin consumers can provide it via InferenceEngine::SetLogCallback
17  */
18 class IErrorListener {
19 public:
20     /**
21      * @brief The plugin calls this method with a null terminated error message (in case of error)
22      *
23      * @param msg Error message
24      */
25     virtual void onError(const char* msg) noexcept = 0;
26 };
27 }  // namespace InferenceEngine