Simpler deployment.
[redakcja.git] / redakcja / static / filebrowser / uploadify / com / adobe / serialization / json / JSONParseError.as
1 /*\r
2   Copyright (c) 2008, Adobe Systems Incorporated\r
3   All rights reserved.\r
4 \r
5   Redistribution and use in source and binary forms, with or without \r
6   modification, are permitted provided that the following conditions are\r
7   met:\r
8 \r
9   * Redistributions of source code must retain the above copyright notice, \r
10     this list of conditions and the following disclaimer.\r
11   \r
12   * Redistributions in binary form must reproduce the above copyright\r
13     notice, this list of conditions and the following disclaimer in the \r
14     documentation and/or other materials provided with the distribution.\r
15   \r
16   * Neither the name of Adobe Systems Incorporated nor the names of its \r
17     contributors may be used to endorse or promote products derived from \r
18     this software without specific prior written permission.\r
19 \r
20   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
21   IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
22   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
23   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
24   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
25   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
26   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
27   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
28   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
29   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
30   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
31 */\r
32 \r
33 package com.adobe.serialization.json {\r
34 \r
35         /**\r
36          *\r
37          *\r
38          */\r
39         public class JSONParseError extends Error       {\r
40         \r
41                 /** The location in the string where the error occurred */\r
42                 private var _location:int;\r
43                 \r
44                 /** The string in which the parse error occurred */\r
45                 private var _text:String;\r
46         \r
47                 /**\r
48                  * Constructs a new JSONParseError.\r
49                  *\r
50                  * @param message The error message that occured during parsing\r
51                  * @langversion ActionScript 3.0\r
52                  * @playerversion Flash 9.0\r
53                  * @tiptext\r
54                  */\r
55                 public function JSONParseError( message:String = "", location:int = 0, text:String = "") {\r
56                         super( message );\r
57                         name = "JSONParseError";\r
58                         _location = location;\r
59                         _text = text;\r
60                 }\r
61 \r
62                 /**\r
63                  * Provides read-only access to the location variable.\r
64                  *\r
65                  * @return The location in the string where the error occurred\r
66                  * @langversion ActionScript 3.0\r
67                  * @playerversion Flash 9.0\r
68                  * @tiptext\r
69                  */\r
70                 public function get location():int {\r
71                         return _location;\r
72                 }\r
73                 \r
74                 /**\r
75                  * Provides read-only access to the text variable.\r
76                  *\r
77                  * @return The string in which the error occurred\r
78                  * @langversion ActionScript 3.0\r
79                  * @playerversion Flash 9.0\r
80                  * @tiptext\r
81                  */\r
82                 public function get text():String {\r
83                         return _text;\r
84                 }\r
85         }\r
86         \r
87 }