Home | History | Annotate | Download | only in fm2js
      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_FXFA_FM2JS_XFA_ERROR_H_
      8 #define XFA_FXFA_FM2JS_XFA_ERROR_H_
      9 
     10 #include "core/fxcrt/fx_string.h"
     11 #include "core/fxcrt/fx_system.h"
     12 
     13 extern const FX_WCHAR kFMErrUnsupportedChar[];
     14 extern const FX_WCHAR kFMErrBadSuffixNumber[];
     15 extern const FX_WCHAR kFMErrExpectedIdentifier[];
     16 extern const FX_WCHAR kFMErrExpectedToken[];
     17 extern const FX_WCHAR kFMErrExpectedEndIf[];
     18 extern const FX_WCHAR kFMErrUnexpectedExpression[];
     19 extern const FX_WCHAR kFMErrExpectedNonEmptyExpression[];
     20 
     21 class CXFA_FMErrorInfo {
     22  public:
     23   CXFA_FMErrorInfo() : linenum(0) {}
     24   ~CXFA_FMErrorInfo() {}
     25   uint32_t linenum;
     26   CFX_WideString message;
     27 };
     28 
     29 #endif  // XFA_FXFA_FM2JS_XFA_ERROR_H_
     30