/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

  1. /*
  2. * ArcGIS for Google Maps Flash API
  3. *
  4. * License http://www.apache.org/licenses/LICENSE-2.0
  5. */
  6. /**
  7. * @author nianwei at gmail dot com
  8. */
  9. package com.google.maps.extras.arcgislink
  10. {
  11. /**
  12. * represent normal error returned by server, or wrapped RPC error
  13. */
  14. public class ServiceError
  15. {
  16. public var code:Number;
  17. public var message:String;
  18. public var details:Array;
  19. public function ServiceError(params:*=null)
  20. {
  21. if (params){
  22. ArcGISUtil.augmentObject(params,this,false);
  23. }
  24. }
  25. public function toString():String{
  26. return '('+code+')'+message+'\n'+(details?details.join('\n'):'');
  27. }
  28. }
  29. }