Exception: AdbSdkLib::SdkLibError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/adb_sdklib/common.rb

Overview

Error on java

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exception_name, class_name, method_name) ⇒ SdkLibError

Returns a new instance of SdkLibError.

Parameters:

  • message (String)

    error message

  • exception_name (String)

    exception class name on Java

  • class_name (String)

    class name

  • method_name (String)

    method name



23
24
25
26
27
28
29
# File 'lib/adb_sdklib/common.rb', line 23

def initialize(message, exception_name, class_name, method_name)
  super("#{message} (#{exception_name}) - [#{class_name}##{method_name}()]")
  @error_message = message
  @exception_name = exception_name
  @class_name = class_name
  @method_name = method_name
end

Instance Attribute Details

#class_nameString (readonly)

Returns class name.

Returns:

  • (String)

    class name



15
16
17
# File 'lib/adb_sdklib/common.rb', line 15

def class_name
  @class_name
end

#error_messageString (readonly)

Returns error message.

Returns:

  • (String)

    error message



11
12
13
# File 'lib/adb_sdklib/common.rb', line 11

def error_message
  @error_message
end

#exception_nameString (readonly)

Returns exception class name on Java.

Returns:

  • (String)

    exception class name on Java



13
14
15
# File 'lib/adb_sdklib/common.rb', line 13

def exception_name
  @exception_name
end

#method_nameString (readonly)

Returns method name.

Returns:

  • (String)

    method name



17
18
19
# File 'lib/adb_sdklib/common.rb', line 17

def method_name
  @method_name
end