Exception: Typed::Validations::RequiredFieldError

Inherits:
ValidationError show all
Extended by:
T::Sig
Defined in:
lib/typed/validations/required_field_error.rb

Instance Method Summary collapse

Methods inherited from DeserializeError

#to_h, #to_json

Methods inherited from SerializationError

#to_h, #to_json

Constructor Details

#initialize(field_name:) ⇒ RequiredFieldError

Returns a new instance of RequiredFieldError.



9
10
11
# File 'lib/typed/validations/required_field_error.rb', line 9

def initialize(field_name:)
  super("#{field_name} is required.")
end