lib/lazier/exceptions.rb in lazier-2.6.0 vs lib/lazier/exceptions.rb in lazier-2.6.1

- old
+ new

@@ -11,8 +11,15 @@ class Dump < ::RuntimeError end # This exception is raised from {I18n I18n} if no valid translation are found in the specified path. class MissingTranslation < Exception + # 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.to_json}.") + end end end end