Sha256: 57fcdeb01ec97d594d25f5bba10b6c5bff8cdb102e9c40686283caaa1a845f1d

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  # All mixture errors inherit this.
  class BasicError < StandardError
  end

  # Occurs when a value can't be coerced into another value.
  class CoercionError < BasicError
  end

  # Occurs when a validation fails.
  class ValidationError < BasicError
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/errors.rb
mixture-0.7.0 lib/mixture/errors.rb