Exception: AdbSdkLib::SdkLibError
- Inherits:
-
StandardError
- Object
- StandardError
- AdbSdkLib::SdkLibError
- Defined in:
- lib/adb_sdklib/common.rb
Overview
Error on java
Instance Attribute Summary collapse
-
#class_name ⇒ String
readonly
Class name.
-
#error_message ⇒ String
readonly
Error message.
-
#exception_name ⇒ String
readonly
Exception class name on Java.
-
#method_name ⇒ String
readonly
Method name.
Instance Method Summary collapse
-
#initialize(message, exception_name, class_name, method_name) ⇒ SdkLibError
constructor
A new instance of SdkLibError.
Constructor Details
#initialize(message, exception_name, class_name, method_name) ⇒ SdkLibError
Returns a new instance of SdkLibError.
23 24 25 26 27 28 29 |
# File 'lib/adb_sdklib/common.rb', line 23 def initialize(, exception_name, class_name, method_name) super("#{} (#{exception_name}) - [#{class_name}##{method_name}()]") @error_message = @exception_name = exception_name @class_name = class_name @method_name = method_name end |
Instance Attribute Details
#class_name ⇒ String (readonly)
Returns class name.
15 16 17 |
# File 'lib/adb_sdklib/common.rb', line 15 def class_name @class_name end |
#error_message ⇒ String (readonly)
Returns error message.
11 12 13 |
# File 'lib/adb_sdklib/common.rb', line 11 def @error_message end |
#exception_name ⇒ String (readonly)
Returns exception class name on Java.
13 14 15 |
# File 'lib/adb_sdklib/common.rb', line 13 def exception_name @exception_name end |
#method_name ⇒ String (readonly)
Returns method name.
17 18 19 |
# File 'lib/adb_sdklib/common.rb', line 17 def method_name @method_name end |