Exception: Minato::Utils::SerializableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/minato/utils/exception.rb

Direct Known Subclasses

NetworkException, SerializableException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ SerializableError

Returns a new instance of SerializableError.



10
11
12
13
14
15
# File 'lib/minato/utils/exception.rb', line 10

def initialize(object)
  @id = self.class.to_s.underscore
  @body = object.body
  @code = object.code
  super
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



8
9
10
# File 'lib/minato/utils/exception.rb', line 8

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



8
9
10
# File 'lib/minato/utils/exception.rb', line 8

def code
  @code
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/minato/utils/exception.rb', line 8

def id
  @id
end