Exception: Flydata::AgentInternalError

Inherits:
AgentError
  • Object
show all
Defined in:
lib/flydata/errors.rb

Constant Summary collapse

NO_VALID_TABLE_ERR =
101
NO_DATA_ENTRY_ERR =
102
UNKNOWN_ERR =
999

Instance Attribute Summary collapse

Attributes inherited from AgentError

#description

Instance Method Summary collapse

Methods inherited from AgentError

description

Constructor Details

#initialize(message, code = UNKNOWN_ERR) ⇒ AgentInternalError

Returns a new instance of AgentInternalError.



47
48
49
50
# File 'lib/flydata/errors.rb', line 47

def initialize(message, code = UNKNOWN_ERR)
  super("#{message} code:#{code}")
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



52
53
54
# File 'lib/flydata/errors.rb', line 52

def code
  @code
end