Sha256: b4ec3fcc1a06d9af25f3a72b78ae38a2f6b8270c300129ad89dff377e927ee75

Contents?: true

Size: 350 Bytes

Versions: 94

Compression:

Stored size: 350 Bytes

Contents

require_relative 'error_factory'

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

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

  contract Symbol, Nilor[String] => SubclassOf[Error]
  def build(code, locale = nil)
    build_error(:not_found, 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/not_found_error.rb
ree_lib-1.0.12 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.11 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.10 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.9 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.8 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.7 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.6 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.5 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.4 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.3 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.2 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.1 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb
ree_lib-1.0.0 lib/ree_lib/packages/ree_errors/package/ree_errors/not_found_error.rb