Class: Glia::Errors::MalformedInputError

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

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ MalformedInputError

Returns a new instance of MalformedInputError.



266
267
268
269
270
271
272
# File 'lib/glia/errors/client_errors.rb', line 266

def initialize(message: nil)
  super(
    type: MALFORMED_INPUT_ERROR,
    ref: create_ref(MALFORMED_INPUT_ERROR),
    message: message || 'Request is malformed'
  )
end