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

error_id.h
1 
2 /*******************************************************************************
3 * Copyright 2014-2017 Intel Corporation
4 * All Rights Reserved.
5 *
6 * If this software was obtained under the Intel Simplified Software License,
7 * the following terms apply:
8 *
9 * The source code, information and material ("Material") contained herein is
10 * owned by Intel Corporation or its suppliers or licensors, and title to such
11 * Material remains with Intel Corporation or its suppliers or licensors. The
12 * Material contains proprietary information of Intel or its suppliers and
13 * licensors. The Material is protected by worldwide copyright laws and treaty
14 * provisions. No part of the Material may be used, copied, reproduced,
15 * modified, published, uploaded, posted, transmitted, distributed or disclosed
16 * in any way without Intel's prior express written permission. No license under
17 * any patent, copyright or other intellectual property rights in the Material
18 * is granted to or conferred upon you, either expressly, by implication,
19 * inducement, estoppel or otherwise. Any license under such intellectual
20 * property rights must be express and approved by Intel in writing.
21 *
22 * Unless otherwise agreed by Intel in writing, you may not remove or alter this
23 * notice or any other notice embedded in Materials by Intel or Intel's
24 * suppliers or licensors in any way.
25 *
26 *
27 * If this software was obtained under the Apache License, Version 2.0 (the
28 * "License"), the following terms apply:
29 *
30 * You may not use this file except in compliance with the License. You may
31 * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
32 *
33 *
34 * Unless required by applicable law or agreed to in writing, software
35 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
36 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37 *
38 * See the License for the specific language governing permissions and
39 * limitations under the License.
40 *******************************************************************************/
41 
42 /*
43 //++
44 // Data types for error handling in Intel(R) DAAL.
45 //--
46 */
47 
48 #ifndef __ERROR_ID__
49 #define __ERROR_ID__
50 
51 #include "error_indexes.h"
52 #include "services/daal_defines.h"
53 #include "daal_memory.h"
54 
55 namespace daal
56 {
57 namespace services
58 {
59 
60 namespace interface1
61 {
70 class DAAL_EXPORT ErrorDetail
71 {
72 public:
73  DAAL_NEW_DELETE();
74 
79  ErrorDetail(ErrorDetailID id) : _id(id), _next(NULL){}
80 
84  virtual ~ErrorDetail(){}
85 
90  ErrorDetailID id() const { return _id; }
91 
96  virtual ErrorDetail* clone() const = 0;
97 
102  virtual void describe(char* str) const = 0;
103 
108  const ErrorDetail* next() const { return _next; }
109 
110 protected:
115  ErrorDetail* next() { return _next; }
116 
121  void addNext(ErrorDetail* ptr) { _next = ptr; }
122 
123 private:
124  const ErrorDetailID _id;
125  ErrorDetail* _next;
126  friend class Error;
127 };
130 } // namespace interface1
131 using interface1::ErrorDetail;
132 
133 }
134 }
135 #endif
daal::services::interface1::ErrorDetail
Base for error detail classes.
Definition: error_id.h:70
daal::services::interface1::ErrorDetail::next
const ErrorDetail * next() const
Definition: error_id.h:108
daal::services::interface1::ErrorDetail::id
ErrorDetailID id() const
Definition: error_id.h:90
daal
Definition: algorithm_base_common.h:57
daal::services::interface1::ErrorDetail::next
ErrorDetail * next()
Definition: error_id.h:115
daal::services::interface1::Error
Class that represents an error.
Definition: error_handling.h:135
daal_defines.h
daal::services::ErrorDetailID
ErrorDetailID
Definition: error_indexes.h:65
daal::services::interface1::ErrorDetail::ErrorDetail
ErrorDetail(ErrorDetailID id)
Definition: error_id.h:79
daal::services::interface1::ErrorDetail::~ErrorDetail
virtual ~ErrorDetail()
Definition: error_id.h:84
daal::services::interface1::ErrorDetail::addNext
void addNext(ErrorDetail *ptr)
Definition: error_id.h:121

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