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.34 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.33 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.32 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.31 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.30 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.29 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.28 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.27 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.26 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.24 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.23 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.22 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.21 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.20 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.19 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.18 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.17 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.16 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.15 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb
ree_lib-1.0.14 lib/ree_lib/packages/ree_errors/package/ree_errors/validation_error.rb