Exception: Hellobase::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, *args) ⇒ Error

Returns a new instance of Error.



21
22
23
24
25
26
# File 'lib/hellobase.rb', line 21

def initialize(type, *args)
  @type = type
  @args = args

  super "#{type}: #{args.inspect}"
end

Instance Attribute Details

#type ⇒ Object (readonly)

Returns the value of attribute type.



19
20
21
# File 'lib/hellobase.rb', line 19

def type
  @type
end