Sha256: 54d84e33aa02109f07df0ab32a3d18ced979208a10c037b66aa3d894e1dec155

Contents?: true

Size: 354 Bytes

Versions: 94

Compression:

Stored size: 354 Bytes

Contents

require_relative 'error_factory'

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

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

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

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
ree_lib-1.0.94 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.93 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.92 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.91 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.90 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.89 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.88 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.87 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.86 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.85 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.84 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.83 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.82 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.81 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.80 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.79 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.78 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.77 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.76 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb
ree_lib-1.0.75 lib/ree_lib/packages/ree_errors/package/ree_errors/permission_error.rb