Class: Lookout::Exception::Unknown

Inherits:
Object
  • Object
show all
Defined in:
lib/lookout-3.0/exception/unknown.rb

Overview

Wraps an exception that was raised while trying to determine an exception’s class to make it behave like an exception class.

Instance Method Summary collapse

Instance Method Details

#inspectObject

Returns The message explaining that the exception’s class couldn’t be determined and why that is so.

Returns:

  • The message explaining that the exception’s class couldn’t be determined and why that is so



17
# File 'lib/lookout-3.0/exception/unknown.rb', line 17

def inspect; '(%s)' % message end

#nameObject

Raises:

  • (RuntimeError)

    Containing a message explaining that the exception’s class couldn’t be determined and why that is so



13
# File 'lib/lookout-3.0/exception/unknown.rb', line 13

def name; raise message end