C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

error_id.h
1 
2 /*******************************************************************************
3 * Copyright 2014-2018 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Data types for error handling in Intel(R) DAAL.
19 //--
20 */
21 
22 #ifndef __ERROR_ID__
23 #define __ERROR_ID__
24 
25 #include "error_indexes.h"
26 #include "services/daal_defines.h"
27 #include "daal_memory.h"
28 
29 namespace daal
30 {
31 namespace services
32 {
33 
34 namespace interface1
35 {
44 class DAAL_EXPORT ErrorDetail
45 {
46 public:
47  DAAL_NEW_DELETE();
48 
53  ErrorDetail(ErrorDetailID id) : _id(id), _next(NULL){}
54 
58  virtual ~ErrorDetail(){}
59 
64  ErrorDetailID id() const { return _id; }
65 
70  virtual ErrorDetail* clone() const = 0;
71 
76  virtual void describe(char* str) const = 0;
77 
82  const ErrorDetail* next() const { return _next; }
83 
84 protected:
89  ErrorDetail* next() { return _next; }
90 
95  void addNext(ErrorDetail* ptr) { _next = ptr; }
96 
97 private:
98  const ErrorDetailID _id;
99  ErrorDetail* _next;
100  friend class Error;
101 };
104 } // namespace interface1
105 using interface1::ErrorDetail;
106 
107 }
108 }
109 #endif
daal::services::interface1::ErrorDetail
Base for error detail classes.
Definition: error_id.h:44
daal::services::interface1::ErrorDetail::next
const ErrorDetail * next() const
Definition: error_id.h:82
daal::services::interface1::ErrorDetail::id
ErrorDetailID id() const
Definition: error_id.h:64
daal
Definition: algorithm_base_common.h:31
daal::services::interface1::ErrorDetail::next
ErrorDetail * next()
Definition: error_id.h:89
daal::services::interface1::Error
Class that represents an error.
Definition: error_handling.h:109
daal_defines.h
daal::services::ErrorDetailID
ErrorDetailID
Definition: error_indexes.h:39
daal::services::interface1::ErrorDetail::ErrorDetail
ErrorDetail(ErrorDetailID id)
Definition: error_id.h:53
daal::services::interface1::ErrorDetail::~ErrorDetail
virtual ~ErrorDetail()
Definition: error_id.h:58
daal::services::interface1::ErrorDetail::addNext
void addNext(ErrorDetail *ptr)
Definition: error_id.h:95

For more complete information about compiler optimizations, see our Optimization Notice.