Sha256: 0637f7066572311db2e2be7d11554ece133d985ef275744fa9ed067ffa672d39

Contents?: true

Size: 354 Bytes

Versions: 94

Compression:

Stored size: 354 Bytes

Contents

require_relative 'error_factory'

class ReeErrors::ValidationError < ReeErrors::ErrorFactory
  include Ree::BeanDSL

  bean :validation_error do
    link :build_error
    link 'ree_errors/error', -> { Error }
  end

  contract Symbol, Nilor[String] => SubclassOf[Error]
  def build(code, locale = nil)
    build_error(:validation, code, locale)
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
ree_lib-1.0.13 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.12 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.11 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.10 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.9 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.8 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.7 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.6 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.5 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.4 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.3 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.2 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.1 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.0 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb