Exception: MKIt::BaseException

Inherits:
Exception
  • Object
show all
Defined in:
lib/mkit/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, message = nil) ⇒ BaseException

Returns a new instance of BaseException.



4
5
6
7
# File 'lib/mkit/exceptions.rb', line 4

def initialize(error_code, message = nil)
  super(message)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



3
4
5
# File 'lib/mkit/exceptions.rb', line 3

def error_code
  @error_code
end