Exception: PipeLineDealer::Error::Connection::Unprocessable

Inherits:
PipeLineDealer::Error::Connection show all
Defined in:
lib/pipe_line_dealer/error/connection.rb

Instance Attribute Summary collapse

Attributes inherited from PipeLineDealer::Error

#message

Instance Method Summary collapse

Methods inherited from PipeLineDealer::Error

#to_s

Constructor Details

#initialize(errors) ⇒ Unprocessable

Returns a new instance of Unprocessable.



10
11
12
13
# File 'lib/pipe_line_dealer/error/connection.rb', line 10

def initialize(errors)
  @errors = errors
  @message = "Couldn't save to the server: #{errors.inspect}"
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



8
9
10
# File 'lib/pipe_line_dealer/error/connection.rb', line 8

def errors
  @errors
end