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.



64
65
66
67
# File 'lib/tebako/error.rb', line 64

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.



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

def error_code
  @error_code
end