Exception: Melomel::Error
- Defined in:
- lib/melomel/error.rb
Instance Attribute Summary collapse
-
#error_id ⇒ Object
readonly
The error identifier of the Flash error.
-
#message ⇒ Object
readonly
The Flash error message.
-
#name ⇒ Object
readonly
The name of the Flash error.
-
#object ⇒ Object
readonly
A proxied reference to the original Flash error object.
-
#stack_trace ⇒ Object
readonly
The Flash stack trace.
Instance Method Summary collapse
-
#initialize(object, error_id, message, name, stack_trace) ⇒ Error
constructor
Constructor.
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, , name, stack_trace) @object = object @error_id = error_id @message = @name = name @stack_trace = stack_trace end |
Instance Attribute Details
#error_id ⇒ Object (readonly)
The error identifier of the Flash error.
31 32 33 |
# File 'lib/melomel/error.rb', line 31 def error_id @error_id end |
#message ⇒ Object (readonly)
The Flash error message.
34 35 36 |
# File 'lib/melomel/error.rb', line 34 def @message end |
#name ⇒ Object (readonly)
The name of the Flash error.
37 38 39 |
# File 'lib/melomel/error.rb', line 37 def name @name end |
#object ⇒ Object (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_trace ⇒ Object (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 |