Catch all exception

Asked by alexo@live.ru on 2016-07-11

How i catch all exception like:

suds.WebFault: Server raised fault: '
classname: <class 'app.v1.models.ladon_added_order.ctAddedOrder'>
attribute: execution
An exception was raised while processing LadonType attribute "execution"
Details:Attribute "executorId" (class: "<class 'app.v1.models.ladon_execution.ctExecution'>") is not nullable'

?

Question information

Language:
Russian Edit question
Status:
Answered
For:
ladon Edit question
Assignee:
No assignee Edit question
Last query:
2016-07-11
Last reply:
2016-07-11
jsgaarde (jakob-simon-gaarde) said : #1

Seems like you are getting the exception on the client side, so this is a suds question.
If your attribute "executorId" should be nullable, then you need to tell it to Ladon:

https://pythonhosted.org/ladon/ladontype.html#dictionary-type-definition

alexo@live.ru (alexo) said : #2

And it is possible to change this response and make a record in the log? Now I only see (set_loglevel(7)):

POST /TopDeliveryMethods/soap11 => generated 2882 bytes in 75 msecs (HTTP/1.0 200) 2 headers in 80 bytes (1 switches on core 0).

I'd like to know what that customer was incorrectly request

Can you help with this problem?

Provide an answer of your own, or ask alexo@live.ru for more information if necessary.

To post a message you must log in.