Exception: DiffbotSimple::V2::DiffbotError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/diffbot_simple/v2/diffbot_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_message, error_code = nil) ⇒ DiffbotError

Returns a new instance of DiffbotError.



4
5
6
7
# File 'lib/diffbot_simple/v2/diffbot_error.rb', line 4

def initialize error_message, error_code = nil
  @error_code = error_code
  super error_message
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



3
4
5
# File 'lib/diffbot_simple/v2/diffbot_error.rb', line 3

def error_code
  @error_code
end