Exception: Splicer::Errors::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/splicer/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data = {}) ⇒ RequestError

Returns a new instance of RequestError.



9
10
11
12
# File 'lib/splicer/errors.rb', line 9

def initialize(message, data = {})
  super(message)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/splicer/errors.rb', line 8

def data
  @data
end