/flash/echo-nest-flash-api/src/com/ryanberdeen/echonest/api/v3/EchoNestErrorEvent.as

http://echo-nest-remix.googlecode.com/ · ActionScript · 29 lines · 23 code · 6 blank · 0 comment · 0 complexity · c6e552de1c12ed5fcd320149b25edf9b MD5 · raw file

  1. package com.ryanberdeen.echonest.api.v3 {
  2. import flash.events.ErrorEvent;
  3. import flash.events.Event;
  4. public class EchoNestErrorEvent extends ErrorEvent {
  5. public static const ECHO_NEST_ERROR:String = "echoNestError";
  6. private var _code:int;
  7. private var _message:String;
  8. public function EchoNestErrorEvent(type:String, code:int, message:String) {
  9. super(type, bubbles, cancelable, (code + ': ' + message));
  10. _code = code;
  11. _message = message;
  12. }
  13. public function get code():int {
  14. return _code;
  15. }
  16. public function get message():String {
  17. return _message;
  18. }
  19. override public function clone():Event {
  20. return new EchoNestErrorEvent(type, code, message);
  21. }
  22. }
  23. }