Exception: WackyGraph::GraphError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wacky_graph/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type, code, error_subcode) ⇒ GraphError

attr_accessor :error_subcode



8
9
10
11
12
13
# File 'lib/wacky_graph/error.rb', line 8

def initialize(message, type, code, error_subcode)
  @message = message
  @type = type
  @code = code
  @error_subcode = error_subcode
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/wacky_graph/error.rb', line 3

def code
  @code
end

#error_subcodeObject

Returns the value of attribute error_subcode.



3
4
5
# File 'lib/wacky_graph/error.rb', line 3

def error_subcode
  @error_subcode
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/wacky_graph/error.rb', line 3

def message
  @message
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/wacky_graph/error.rb', line 3

def type
  @type
end