Sha256: 9cd290131dd09f3e8ec991cb0dc3a09841c4d1ce1afd8b18760f233ac1a64c61
Contents?: true
Size: 909 Bytes
Versions: 4
Compression:
Stored size: 909 Bytes
Contents
# encoding: utf-8 # # This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # module Lazier # Exceptions for lazier. module Exceptions # This exception is raised to debug code. class Debug < ::StandardError end # This exception is raised from {I18n I18n} if no valid translation are found in the specified path. class MissingTranslation < StandardError # Creates a new missing translation exception. # # @param locales [Array] The locales that was requested to load. # @param path [String] The path where was request to search for translations. def initialize(locales, path) super("Unable to load any of the following translation in #{path}: #{locales.join(", ")}.") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lazier-3.2.0 | lib/lazier/exceptions.rb |
lazier-3.1.0 | lib/lazier/exceptions.rb |
lazier-3.0.1 | lib/lazier/exceptions.rb |
lazier-3.0.0 | lib/lazier/exceptions.rb |