Exception: SimplySerializable::Error

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

Direct Known Subclasses

CircularDependencyError

Defined Under Namespace

Classes: CircularDependencyError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type:) ⇒ Error

Returns a new instance of Error.



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

def initialize(message, type:)
  @type = type
  super(message)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/simply_serializable.rb', line 9

def type
  @type
end