Exception: DICTError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/dict.rb

Overview

a basic exception class for DICT errors

Direct Known Subclasses

ConnectError, ProtocolError

Instance Method Summary collapse

Constructor Details

#initialize(message, code = 1) ⇒ DICTError

Returns a new instance of DICTError.



171
172
173
174
# File 'lib/dict.rb', line 171

def initialize(message, code = 1)
  $stderr.puts message
  exit code
end