Class: Typekit::Converter::Errors

Inherits:
Object
  • Object
show all
Defined in:
lib/typekit/converter/errors.rb

Instance Method Summary collapse

Constructor Details

#initializeErrors

Returns a new instance of Errors.



4
5
# File 'lib/typekit/converter/errors.rb', line 4

def initialize(*)
end

Instance Method Details

#process(result, errors) ⇒ Object

Raises:



7
8
9
# File 'lib/typekit/converter/errors.rb', line 7

def process(result, errors)
  raise ServerError.new(result.code, Array(errors).join(', '))
end