Sha256: b16bd531bb633537674e10cc5a2469e03f642c603829c7892bb4bd72e37f282c
Contents?: true
Size: 417 Bytes
Versions: 6
Compression:
Stored size: 417 Bytes
Contents
# typed: strict module Typed module Validations class TypeMismatchError < ValidationError extend T::Sig sig { params(field_name: Symbol, field_type: T::Class[T.anything], given_type: T::Class[T.anything]).void } def initialize(field_name:, field_type:, given_type:) super("Invalid type given to #{field_name}. Expected #{field_type}, got #{given_type}.") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems