InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IErrorState.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ?
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IErrorState__
25 #define __IErrorState__
26 
27 // ----- Interfaces -----
28 
29 #include "IPMUnknown.h"
30 
31 // ----- ID.h files -----
32 
33 #include "ShuksanID.h"
34 
35 
36 class PMString;
37 
53 class IErrorState : public IPMUnknown
54 {
55 public:
56  enum { kDefaultIID = IID_IERRORSTATE };
57 
69  virtual void Set
70  (
71  ErrorCode errCode,
72  const PMString* errStr = nil,
73  IPMUnknown* errInfo = nil,
74  const PMString* errContext = nil
75  ) = 0;
76 
80  virtual ErrorCode GetErrorCode() const = 0;
81 
85  virtual PMString GetErrorString() const = 0;
86 
90  virtual IPMUnknown* QueryErrorInfo() const = 0;
91 
95  virtual PMString GetContextInfo() const = 0;
96 
99  virtual bool16 IsExplicitString() const = 0;
100 };
101 
102 
103 #endif // __IErrorState__