/src/com/google/maps/extras/arcgislink/ServiceError.as
http://gmaps-utility-library-flash.googlecode.com/ · ActionScript · 30 lines · 18 code · 1 blank · 11 comment · 1 complexity · 4e27408713b8e5161fe95facf57eae18 MD5 · raw file
- /*
- * ArcGIS for Google Maps Flash API
- *
- * License http://www.apache.org/licenses/LICENSE-2.0
- */
- /**
- * @author nianwei at gmail dot com
- */
- package com.google.maps.extras.arcgislink
- {
- /**
- * represent normal error returned by server, or wrapped RPC error
- */
- public class ServiceError
- {
- public var code:Number;
- public var message:String;
- public var details:Array;
- public function ServiceError(params:*=null)
- {
- if (params){
- ArcGISUtil.augmentObject(params,this,false);
- }
-
- }
- public function toString():String{
- return '('+code+')'+message+'\n'+(details?details.join('\n'):'');
- }
- }
- }