Exception: Qubell::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/qubell/errors.rb

Overview

Base exception for Qubell module

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, msg = 'unknown status code') ⇒ BaseError

Returns a new instance of BaseError.



8
9
10
11
# File 'lib/qubell/errors.rb', line 8

def initialize(error_code, msg = 'unknown status code')
  super msg
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



6
7
8
# File 'lib/qubell/errors.rb', line 6

def error_code
  @error_code
end