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