Exception: ErrorBase

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

Instance Method Summary collapse

Constructor Details

#initialize(*message) ⇒ ErrorBase

Returns a new instance of ErrorBase.



2
3
4
5
6
# File 'lib/error_base.rb', line 2

def initialize( *message )
  _v = message.join(' ')
  @_msg = !_v.empty? ? _v : self.class::MESSAGE
  @_code = self.class::CODE
end

Instance Method Details

#codeObject



8
9
10
# File 'lib/error_base.rb', line 8

def code
  @_code
end

#messageObject



12
13
14
# File 'lib/error_base.rb', line 12

def message
  @_msg
end