PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/com/google/maps/extras/arcgislink/json/JSONParseError.as

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