Class ArkanisDevelopment::SimpleLocalization::EntryNotFound
In: lib/errors.rb
Parent: SimpleLocalizationError

This error is raised if a requested entry could not be found. This error also stores the requested entry and the language for which the entry could not be found.

  begin
    Language.find :en, :nonsens, :void
  rescue EntryNotFound => e
    e.requested_entry  # => [:nonsens, :void]
    e.language         # => :en
  end

Methods

new  

Attributes

language  [R] 
requested_entry  [R] 

Public Class methods

[Source]

    # File lib/errors.rb, line 47
47:       def initialize(requested_entry = [], language = nil)
48:         @requested_entry, @language = Array(requested_entry), language
49:         super "The requested entry '#{@requested_entry.join('\' -> \'')}' could " +
50:           "not be found in the language '#{@language}'."
51:       end

[Validate]