class Dry::Types::Nominal

def failure(input, error)

Other tags:
    Api: - public

Returns:
  • (Result::Failure) -

Parameters:
  • () --
def failure(input, error)
  raise ::ArgumentError, "error must be a CoercionError" unless error.is_a?(CoercionError)
  Result::Failure.new(input, error)
end