Exception: Restruct::NoScriptError

Inherits:
ConnectionError show all
Defined in:
lib/restruct/errors.rb

Class Method Summary collapse

Methods inherited from ConnectionError

#backtrace, #initialize, #message

Constructor Details

This class inherits a constructor from Restruct::ConnectionError

Class Method Details

.match?(exception) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/restruct/errors.rb', line 29

def self.match?(exception)
  exception.message.start_with? 'NOSCRIPT No matching script'
end