Class: Glia::Errors::InvalidLengthError
- Defined in:
- lib/glia/errors/client_errors.rb
Instance Attribute Summary
Attributes inherited from Error
#error_details, #message, #ref, #type
Instance Method Summary collapse
-
#initialize(field:, message: nil) ⇒ InvalidLengthError
constructor
A new instance of InvalidLengthError.
Methods inherited from Error
Constructor Details
#initialize(field:, message: nil) ⇒ InvalidLengthError
Returns a new instance of InvalidLengthError.
44 45 46 47 48 49 50 |
# File 'lib/glia/errors/client_errors.rb', line 44 def initialize(field:, message: nil) super( type: INVALID_LENGTH_ERROR, ref: create_ref(INVALID_LENGTH_ERROR), message: || "#{Naming.humanize(field)} length is invalid" ) end |