Exception: Hellobase::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, object, *args) ⇒ Error

Returns a new instance of Error.



24
25
26
27
28
29
30
# File 'lib/hellobase/core_ext.rb', line 24

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

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

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



22
23
24
# File 'lib/hellobase/core_ext.rb', line 22

def object
  @object
end

#typeObject (readonly)

Returns the value of attribute type.



22
23
24
# File 'lib/hellobase/core_ext.rb', line 22

def type
  @type
end