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_FM_ERROR_H 8 #define _XFA_FM_ERROR_H 9 enum XFA_FM_ERRMSG { 10 FMERR_UNSUPPORTED_CHAR, 11 FMERR_BAD_SUFFIX_NUMBER, 12 FMERR_INVALIDATE_CHAR, 13 FMERR_EXPECTED_IDENTIFIER, 14 FMERR_EXPECTED_TOKEN, 15 FMERR_EXPECTED_IFEND, 16 FMERR_UNEXPECTED_EXPRESSION, 17 FMERR_EXPTECTED_OPERATOR, 18 FMERR_MAXIMUM 19 }; 20 class CXFA_FMErrorInfo { 21 public: 22 CXFA_FMErrorInfo() : linenum(0){}; 23 ~CXFA_FMErrorInfo(){}; 24 FX_DWORD linenum; 25 CFX_WideString message; 26 }; 27 const FX_WCHAR* XFA_FM_ErrorMsg(XFA_FM_ERRMSG msg); 28 #endif 29