Exception: TCPClient::NotAnExceptionError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/tcp-client/errors.rb

Overview

Raised when a given timeout exception parameter is not an exception class.

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ NotAnExceptionError

Returns a new instance of NotAnExceptionError.

Parameters:

  • object (Object)

    the invalid object



47
48
49
# File 'lib/tcp-client/errors.rb', line 47

def initialize(object)
  super("exception class required - #{object.inspect}")
end