Class: Glia::Errors::PayloadTooLargeError

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) ⇒ PayloadTooLargeError

Returns a new instance of PayloadTooLargeError.



503
504
505
506
507
508
509
# File 'lib/glia/errors/client_errors.rb', line 503

def initialize(message: nil)
  super(
    type: PAYLOAD_TOO_LARGE_ERROR,
    ref: create_ref(PAYLOAD_TOO_LARGE_ERROR),
    message: message || 'Payload Too Large'
  )
end