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.



77
78
79
80
# File 'lib/tebako/error.rb', line 77

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.



81
82
83
# File 'lib/tebako/error.rb', line 81

def error_code
  @error_code
end