agoalofalife / bpm-online

Package for working with bpm’online
8 stars 6 forks source link

How to get Error from response after update #5

Closed bunke closed 6 years ago

bunke commented 6 years ago

When I'm execute update action with error, I've got handler:

object(agoalofalife\bpm\Handlers\XmlHandler)#43 (6) { ["response":"agoalofalife\bpm\Handlers\XmlHandler":private]=> object(SimpleXMLElement)#46 (3) { ["code"]=> string(1) "1" ["message"]=> string(45) "Элемент UsrDiagnosis не найден" ["innererror"]=> object(SimpleXMLElement)#41 (3) { ["message"]=> string(45) "Элемент UsrDiagnosis не найден" ["type"]=> string(38) "Terrasoft.Common.ItemNotFoundException" ....

method ->toArray() do not return response in this case

How can I parse response->message ? this field is private, can I write some getter?

agoalofalife commented 6 years ago

@bunke
I don't use project, so I can't remember. When I have time I will be able to help you. or you can eliminate it yourself

bunke commented 6 years ago

Created pull request https://github.com/agoalofalife/bpm-online/pull/6

agoalofalife commented 6 years ago

add new realease v2.2.0

bunke commented 6 years ago

Updated composer.json https://github.com/agoalofalife/bpm-online/pull/7

agoalofalife commented 6 years ago

add new realease v2.2.1