Exception: Hellobase::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Hellobase::Error
- Defined in:
- lib/hellobase/core_ext.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, object, *args) ⇒ Error
constructor
A new instance of Error.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
22 23 24 |
# File 'lib/hellobase/core_ext.rb', line 22 def object @object end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
22 23 24 |
# File 'lib/hellobase/core_ext.rb', line 22 def type @type end |