Exception: Kotoshu::ResourceResolutionError

Inherits:
Error
  • Object
show all
Defined in:
lib/kotoshu/core/exceptions.rb

Overview

Error raised when a resource cannot be resolved for a language (unsupported language, download failure, etc.).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(language, reason) ⇒ ResourceResolutionError

Returns a new instance of ResourceResolutionError.



137
138
139
140
# File 'lib/kotoshu/core/exceptions.rb', line 137

def initialize(language, reason)
  @language = language
  super("Cannot resolve resources for '#{language}': #{reason}")
end

Instance Attribute Details

#languageObject (readonly)

Returns the value of attribute language.



142
143
144
# File 'lib/kotoshu/core/exceptions.rb', line 142

def language
  @language
end