C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

error_id.h
1 
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Data types for error handling in Intel(R) DAAL.
21 //--
22 */
23 
24 #ifndef __ERROR_ID__
25 #define __ERROR_ID__
26 
27 #include "error_indexes.h"
28 #include "services/daal_defines.h"
29 #include "daal_memory.h"
30 
31 namespace daal
32 {
33 namespace services
34 {
35 
36 namespace interface1
37 {
46 class DAAL_EXPORT ErrorDetail
47 {
48 public:
49  DAAL_NEW_DELETE();
50 
55  ErrorDetail(ErrorDetailID id) : _id(id), _next(NULL){}
56 
60  virtual ~ErrorDetail(){}
61 
66  ErrorDetailID id() const { return _id; }
67 
72  virtual ErrorDetail* clone() const = 0;
73 
78  virtual void describe(char* str) const = 0;
79 
84  const ErrorDetail* next() const { return _next; }
85 
86 protected:
91  ErrorDetail* next() { return _next; }
92 
97  void addNext(ErrorDetail* ptr) { _next = ptr; }
98 
99 private:
100  const ErrorDetailID _id;
101  ErrorDetail* _next;
102  friend class Error;
103 };
106 } // namespace interface1
107 using interface1::ErrorDetail;
108 
109 }
110 }
111 #endif
daal::services::interface1::ErrorDetail::next
const ErrorDetail * next() const
Definition: error_id.h:84
daal::services::interface1::ErrorDetail::~ErrorDetail
virtual ~ErrorDetail()
Definition: error_id.h:60
daal::services::interface1::ErrorDetail::next
ErrorDetail * next()
Definition: error_id.h:91
daal::services::interface1::ErrorDetail
Base for error detail classes.
Definition: error_id.h:46
daal::services::interface1::ErrorDetail::id
ErrorDetailID id() const
Definition: error_id.h:66
daal_defines.h
daal::services::interface1::Error
Class that represents an error.
Definition: error_handling.h:111
daal::services::interface1::ErrorDetail::ErrorDetail
ErrorDetail(ErrorDetailID id)
Definition: error_id.h:55
daal::services::interface1::ErrorDetail::addNext
void addNext(ErrorDetail *ptr)
Definition: error_id.h:97
daal::services::ErrorDetailID
ErrorDetailID
Definition: error_indexes.h:41

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