pip_services3_commons.errors.ApplicationExceptionFactory module

pip_services3_commons.errors.ApplicationExceptionFactory

Application error factory implementation

copyright

Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.

license

MIT, see LICENSE for more details.

class pip_services3_commons.errors.ApplicationExceptionFactory.ApplicationExceptionFactory

Bases: object

Factory to recreate exceptions from ErrorDescription values passed through the wire.

static create(description: pip_services3_commons.errors.ErrorDescription.ErrorDescription)pip_services3_commons.errors.ApplicationException.ApplicationException

Recreates ApplicationException object from serialized ErrorDescription.

It tries to restore original error type using type or error category fields.

Parameters

description – a serialized error description received as a result of remote call

Returns

ApplicationException object from serialized ErrorDescription.