Exception: COM::MethodInvocationError
- Extended by:
- PatternError
- Defined in:
- lib/com/methodinvocationerror.rb
Overview
Represents an COM method invocation error.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#hresult_code ⇒ Object
readonly
Returns the value of attribute hresult_code.
-
#hresult_message ⇒ Object
readonly
Returns the value of attribute hresult_message.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Class Method Summary collapse
-
.replace(error) ⇒ Object
This is an internal method used by COM::Error.
Instance Method Summary collapse
-
#initialize(message, method = '', server = '', code = -1,, hresult_code = -1,, hresult_message = '') ⇒ MethodInvocationError
constructor
Creates a new COM::MethodInvocationError with message.
Methods included from PatternError
Methods inherited from Error
Constructor Details
#initialize(message, method = '', server = '', code = -1,, hresult_code = -1,, hresult_message = '') ⇒ MethodInvocationError
Creates a new COM::MethodInvocationError with message.
30 31 32 33 34 35 |
# File 'lib/com/methodinvocationerror.rb', line 30 def initialize(, method = '', server = '', code = -1, hresult_code = -1, = '') super @method, @server, @code, @hresult_code, @hresult_message = method, server, code, hresult_code, end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
37 38 39 |
# File 'lib/com/methodinvocationerror.rb', line 37 def code @code end |
#hresult_code ⇒ Object (readonly)
Returns the value of attribute hresult_code.
37 38 39 |
# File 'lib/com/methodinvocationerror.rb', line 37 def hresult_code @hresult_code end |
#hresult_message ⇒ Object (readonly)
Returns the value of attribute hresult_message.
37 38 39 |
# File 'lib/com/methodinvocationerror.rb', line 37 def @hresult_message end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
37 38 39 |
# File 'lib/com/methodinvocationerror.rb', line 37 def method @method end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
37 38 39 |
# File 'lib/com/methodinvocationerror.rb', line 37 def server @server end |
Class Method Details
.replace(error) ⇒ Object
This is an internal method used by COM::Error.
16 17 18 19 |
# File 'lib/com/methodinvocationerror.rb', line 16 def replace(error) m = pattern.match(error.) new(m[4], m[1], m[3], m[2].to_i(16), m[5].to_i(16), m[6]) end |