Exception: Apia::FieldSpecParseError

Inherits:
RuntimeError show all
Defined in:
lib/apia/errors/field_spec_parse_error.rb

Instance Method Summary collapse

Instance Method Details

#hashObject



12
13
14
15
16
17
18
19
20
# File 'lib/apia/errors/field_spec_parse_error.rb', line 12

def hash
  {
    code: 'invalid_field_spec',
    description: 'The field spec string was invalid',
    detail: {
      details: message
    }
  }
end

#http_statusObject



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

def http_status
  400
end