HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CE_Error.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: CE_Error.h ( CE Library, C++)
7
*
8
* COMMENTS: Compute Engine Error.
9
*/
10
11
#ifndef __CE_Error__
12
#define __CE_Error__
13
14
#include "
CE_API.h
"
15
16
#ifdef CE_ENABLED
17
18
#include <
UT/UT_String.h
>
19
20
/// A class derived from cl::Error that allows arbitrary error messages to
21
/// be stored with the exception.
22
class
CE_API
CE_Error
:
public
cl::Error
23
{
24
public
:
25
CE_Error
(cl_int err,
const
char
* errStr = NULL) :
26
cl::
Error
(err, NULL), myErrStr(errStr)
27
{
28
myErrStr.harden();
29
}
30
31
~CE_Error
() throw()
override
{}
32
33
const
char
*
what
()
const
throw ()
override
34
{
35
return
myErrStr.buffer();
36
}
37
38
private
:
39
UT_String
myErrStr;
40
};
41
42
43
#endif
44
#endif
CE_API
#define CE_API
Definition:
CE_API.h:10
CE_Error::CE_Error
CE_Error(cl_int err, const char *errStr=NULL)
Definition:
CE_Error.h:25
CE_Error::~CE_Error
~CE_Error() override
Definition:
CE_Error.h:31
CE_API.h
UT_String.h
CE_Error
Definition:
CE_Error.h:22
Error
Error
Definition:
oidn.hpp:319
CE_Error::what
const char * what() const override
Definition:
CE_Error.h:33
UT_String
Definition:
UT_String.h:72
CE
CE_Error.h
Generated on Sat Jul 2 2022 05:31:09 for HDK by
1.8.6