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