source: code/Website/open-flash-chart/com/adobe/serialization/json/JSONParseError.as@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 3.0 KB
Line 
1/*
2Adobe Systems Incorporated(r) Source Code License Agreement
3Copyright(c) 2005 Adobe Systems Incorporated. All rights reserved.
4
5Please read this Source Code License Agreement carefully before using
6the source code.
7
8Adobe Systems Incorporated grants to you a perpetual, worldwide, non-exclusive,
9no-charge, royalty-free, irrevocable copyright license, to reproduce,
10prepare derivative works of, publicly display, publicly perform, and
11distribute this source code and such derivative works in source or
12object code form without any attribution requirements.
13
14The name "Adobe Systems Incorporated" must not be used to endorse or promote products
15derived from the source code without prior written permission.
16
17You agree to indemnify, hold harmless and defend Adobe Systems Incorporated from and
18against any loss, damage, claims or lawsuits, including attorney's
19fees that arise or result from your use or distribution of the source
20code.
21
22THIS SOURCE CODE IS PROVIDED "AS IS" AND "WITH ALL FAULTS", WITHOUT
23ANY TECHNICAL SUPPORT OR ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
24BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ALSO, THERE IS NO WARRANTY OF
26NON-INFRINGEMENT, TITLE OR QUIET ENJOYMENT. IN NO EVENT SHALL MACROMEDIA
27OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
30OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOURCE CODE, EVEN IF
33ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34*/
35
36package com.adobe.serialization.json {
37
38 /**
39 *
40 *
41 */
42 public class JSONParseError extends Error {
43
44 /** The location in the string where the error occurred */
45 private var _location:int;
46
47 /** The string in which the parse error occurred */
48 private var _text:String;
49
50 /**
51 * Constructs a new JSONParseError.
52 *
53 * @param message The error message that occured during parsing
54 * @langversion ActionScript 3.0
55 * @playerversion Flash 9.0
56 * @tiptext
57 */
58 public function JSONParseError( message:String = "", location:int = 0, text:String = "") {
59 super( message );
60 //name = "JSONParseError";
61 _location = location;
62 _text = text;
63 }
64
65 /**
66 * Provides read-only access to the location variable.
67 *
68 * @return The location in the string where the error occurred
69 * @langversion ActionScript 3.0
70 * @playerversion Flash 9.0
71 * @tiptext
72 */
73 public function get location():int {
74 return _location;
75 }
76
77 /**
78 * Provides read-only access to the text variable.
79 *
80 * @return The string in which the error occurred
81 * @langversion ActionScript 3.0
82 * @playerversion Flash 9.0
83 * @tiptext
84 */
85 public function get text():String {
86 return _text;
87 }
88 }
89
90}
Note: See TracBrowser for help on using the repository browser.