Exception: Tebako::Error

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

Overview

Tebako error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Unspecified error", code = 255) ⇒ Error

Returns a new instance of Error.



66
67
68
69
# File 'lib/tebako/error.rb', line 66

def initialize(msg = "Unspecified error", code = 255)
  @error_code = code
  super(msg)
end

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



70
71
72
# File 'lib/tebako/error.rb', line 70

def error_code
  @error_code
end