OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_SRC_FXFA_FM2JS_XFA_ERROR_H_ | |
8 #define XFA_SRC_FXFA_FM2JS_XFA_ERROR_H_ | |
9 | |
10 #include "core/include/fxcrt/fx_string.h" | |
11 #include "core/include/fxcrt/fx_system.h" | |
12 | |
13 enum XFA_FM_ERRMSG { | |
14 FMERR_UNSUPPORTED_CHAR, | |
15 FMERR_BAD_SUFFIX_NUMBER, | |
16 FMERR_INVALIDATE_CHAR, | |
17 FMERR_EXPECTED_IDENTIFIER, | |
18 FMERR_EXPECTED_TOKEN, | |
19 FMERR_EXPECTED_IFEND, | |
20 FMERR_UNEXPECTED_EXPRESSION, | |
21 FMERR_EXPTECTED_OPERATOR, | |
22 FMERR_EXPECTED_NON_EMPTY_EXPRESSION, | |
23 FMERR_MAXIMUM | |
24 }; | |
25 | |
26 class CXFA_FMErrorInfo { | |
27 public: | |
28 CXFA_FMErrorInfo() : linenum(0) {} | |
29 ~CXFA_FMErrorInfo() {} | |
30 FX_DWORD linenum; | |
31 CFX_WideString message; | |
32 }; | |
33 const FX_WCHAR* XFA_FM_ErrorMsg(XFA_FM_ERRMSG msg); | |
34 | |
35 #endif // XFA_SRC_FXFA_FM2JS_XFA_ERROR_H_ | |
OLD | NEW |