Class: Operaton::Bpm::Client::Impl::EngineRestExceptionDto

Inherits:
Object
  • Object
show all
Defined in:
lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb

Overview

Mirrors org.operaton.bpm.client.impl.EngineRestExceptionDto

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code.



11
12
13
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 11

def code
  @code
end

#messageObject

Returns the value of attribute message.



11
12
13
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 11

def message
  @message
end

#typeObject

Returns the value of attribute type.



11
12
13
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 11

def type
  @type
end

Class Method Details

.from_json(hash) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 13

def self.from_json(hash)
  dto = new
  dto.message = hash["message"]
  dto.type = hash["type"]
  dto.code = hash["code"]
  dto
end

Instance Method Details

#to_rest_exceptionObject



21
22
23
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 21

def to_rest_exception
  RestException.new(message, type, code)
end