Class: Restruct::ConnectionErrorFactory
- Inherits:
-
Object
- Object
- Restruct::ConnectionErrorFactory
- Defined in:
- lib/restruct/errors.rb
Class Method Summary collapse
Class Method Details
.create(exception) ⇒ Object
6 7 8 9 |
# File 'lib/restruct/errors.rb', line 6 def self.create(exception) error_type = NoScriptError.match?(exception) ? NoScriptError : ConnectionError error_type.new exception end |