Class: Typekit::Converter::Errors
- Inherits:
-
Object
- Object
- Typekit::Converter::Errors
- Defined in:
- lib/typekit/converter/errors.rb
Instance Method Summary collapse
-
#initialize ⇒ Errors
constructor
A new instance of Errors.
- #process(result, errors) ⇒ Object
Constructor Details
#initialize ⇒ Errors
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
7 8 9 |
# File 'lib/typekit/converter/errors.rb', line 7 def process(result, errors) raise ServerError.new(result.code, Array(errors).join(', ')) end |