Class: Glia::Errors::InputValidationError

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

Overview

rubocop:disable Style/Documentation

Constant Summary

Constants inherited from Error

Error::SNAKE_CASE_REGEX

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(error_details:, message: nil) ⇒ InputValidationError

Returns a new instance of InputValidationError.



7
8
9
10
11
12
13
14
# File 'lib/glia/errors/client_errors.rb', line 7

def initialize(error_details:, message: nil)
  super(
    type: INPUT_VALIDATION_ERROR,
    ref: create_ref(INPUT_VALIDATION_ERROR),
    message: message || 'Input is invalid',
    error_details: error_details
  )
end