Exception: Zaala::API::BadRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zaala/api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, fields = []) ⇒ BadRequestError

Returns a new instance of BadRequestError.



15
16
17
18
# File 'lib/zaala/api/error.rb', line 15

def initialize(msg, fields = [])
  super(msg)
  @fields = fields
end

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields.



13
14
15
# File 'lib/zaala/api/error.rb', line 13

def fields
  @fields
end