Exception: Melomel::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/melomel/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, error_id, message, name, stack_trace) ⇒ Error

Constructor



10
11
12
13
14
15
16
# File 'lib/melomel/error.rb', line 10

def initialize(object, error_id, message, name, stack_trace)
  @object   = object
  @error_id = error_id
  @message  = message
  @name     = name
  @stack_trace = stack_trace
end

Instance Attribute Details

#error_idObject (readonly)

The error identifier of the Flash error.



31
32
33
# File 'lib/melomel/error.rb', line 31

def error_id
  @error_id
end

#messageObject (readonly)

The Flash error message.



34
35
36
# File 'lib/melomel/error.rb', line 34

def message
  @message
end

#nameObject (readonly)

The name of the Flash error.



37
38
39
# File 'lib/melomel/error.rb', line 37

def name
  @name
end

#objectObject (readonly)

A proxied reference to the original Flash error object.

Returns a Melomel::ObjectProxy.



28
29
30
# File 'lib/melomel/error.rb', line 28

def object
  @object
end

#stack_traceObject (readonly)

The Flash stack trace. This is only available when using the Flash debug player or the AIR Debug Launcher (ADL).



41
42
43
# File 'lib/melomel/error.rb', line 41

def stack_trace
  @stack_trace
end