Sha256: bd096614cb84d28af04d9548c77409e1b1e664518475abe9e786b70e3a5a2bf0

Contents?: true

Size: 456 Bytes

Versions: 30

Compression:

Stored size: 456 Bytes

Contents

class ReeErrors::BuildError
  include Ree::FnDSL

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

  contract Any, Symbol, Symbol, Nilor[String], Nilor[String] => SubclassOf[Error]
  def call(caller, type, code, locale, default_msg)
    klass = Class.new(Error)

    klass.instance_exec do
      @caller = caller
      @type = type
      @code = code
      @locale = locale
      @default_msg = default_msg
    end

    klass
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ree_lib-1.0.124 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.123 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.122 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.121 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.120 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.119 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.118 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.117 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.116 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.115 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.114 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.113 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.112 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.111 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.110 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.109 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.108 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.107 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.106 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.105 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb