ArcGIS Procedural Runtime  3.2.10650
CGAError.h
1 /*
2  COPYRIGHT (c) 2012-2024 Esri R&D Center Zurich
3  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
4  Unpublished material - all rights reserved under the
5  Copyright Laws of the United States and applicable international
6  laws, treaties, and conventions.
7 
8  For additional information, contact:
9  Environmental Systems Research Institute, Inc.
10  Attn: Contracts and Legal Services Department
11  380 New York Street
12  Redlands, California, 92373
13  USA
14 
15  email: contracts@esri.com
16 */
17 
18 #ifndef PRTX_CGAERROR_H_
19 #define PRTX_CGAERROR_H_
20 
21 #include "prtx/URI.h"
22 
23 #include "prt/CGAErrorLevel.h"
24 
25 #include <vector>
26 #include <string>
27 #include <memory>
28 
29 
30 namespace prtx {
31 
32 
33 class CGAError;
34 typedef std::shared_ptr<CGAError> CGAErrorPtr;
35 typedef std::vector<CGAErrorPtr> CGAErrorPtrVector;
36 
37 
41 class CGAError {
42 public:
43  CGAError(prt::CGAErrorLevel lev, int32_t mId, int32_t pc, const std::wstring& message) :
44  mLevel(lev), mMethodId(mId), mPC(pc), mErrorMessage(message) {}
45 
47  int32_t mMethodId;
48  int32_t mPC;
49  std::wstring mErrorMessage;
50 };
51 
52 class AssetError;
53 typedef std::shared_ptr<AssetError> AssetErrorPtr;
54 typedef std::vector<AssetErrorPtr> AssetErrorPtrVector;
55 
59 class AssetError {
60 public:
61  AssetError(prt::CGAErrorLevel lev, const std::wstring& key, const prtx::URIPtr& uri, const std::wstring& message) :
62  mLevel(lev), mKey(key), mURI(uri), mErrorMessage(message) {}
63 
65  std::wstring mKey;
67  std::wstring mErrorMessage;
68 };
69 
70 }
71 
72 #endif /* PRTX_CGAERROR_H_ */
prtx::URIPtr mURI
The culprit URI.
Definition: CGAError.h:66
prt::CGAErrorLevel mLevel
The error level.
Definition: CGAError.h:64
Definition: CGAError.h:41
The Procedural Runtime eXtension namespace. The prtx namespace contains the tools to extend the Proce...
Definition: AnnotationBuilder.h:35
std::shared_ptr< URI > URIPtr
shared pointer implementation of prtx::URI
Definition: URI.h:37
Definition: CGAError.h:59
std::wstring mErrorMessage
The error message.
Definition: CGAError.h:49
prt::CGAErrorLevel mLevel
The error level.
Definition: CGAError.h:46
std::wstring mKey
The culprit key into the ResolveMap.
Definition: CGAError.h:65
int32_t mMethodId
The method id.
Definition: CGAError.h:47
CGAErrorLevel
Definition: CGAErrorLevel.h:27
std::wstring mErrorMessage
The error message.
Definition: CGAError.h:67
int32_t mPC
The SPU program counter.
Definition: CGAError.h:48