xfa_error.h revision 4d3acf4ec42bf6e838f9060103aff98fbf170794
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
13extern const FX_WCHAR kFMErrUnsupportedChar[];
14extern const FX_WCHAR kFMErrBadSuffixNumber[];
15extern const FX_WCHAR kFMErrExpectedIdentifier[];
16extern const FX_WCHAR kFMErrExpectedToken[];
17extern const FX_WCHAR kFMErrExpectedEndIf[];
18extern const FX_WCHAR kFMErrUnexpectedExpression[];
19extern const FX_WCHAR kFMErrExpectedNonEmptyExpression[];
20
21class 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