PageRenderTime 61ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

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