Exception: Typed::Validations::RequiredFieldError
- Inherits:
-
ValidationError
- Object
- StandardError
- SerializationError
- DeserializeError
- ValidationError
- Typed::Validations::RequiredFieldError
- Extended by:
- T::Sig
- Defined in:
- lib/typed/validations/required_field_error.rb
Instance Method Summary collapse
-
#initialize(field_name:) ⇒ RequiredFieldError
constructor
A new instance of RequiredFieldError.
Methods inherited from DeserializeError
Methods inherited from SerializationError
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 |