Exception: DiffbotSimple::V2::DiffbotError
- Inherits:
-
StandardError
- Object
- StandardError
- DiffbotSimple::V2::DiffbotError
- Defined in:
- lib/diffbot_simple/v2/diffbot_error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_message, error_code = nil) ⇒ DiffbotError
constructor
A new instance of DiffbotError.
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_code = nil @error_code = error_code super end |
Instance Attribute Details
#error_code ⇒ Object (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 |