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.



156
157
158
159
# File 'lib/kotoshu/core/exceptions.rb', line 156

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

Instance Attribute Details

#language ⇒ Object (readonly)

Returns the value of attribute language.



161
162
163
# File 'lib/kotoshu/core/exceptions.rb', line 161

def language
  @language
end