Package org.pipservices3.commons.errors
Class ApplicationExceptionFactory
java.lang.Object
org.pipservices3.commons.errors.ApplicationExceptionFactory
Factory to recreate exceptions from ErrorDescription values passed through the wire.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationException
create
(ErrorDescription description) Recreates ApplicationException object from serialized ErrorDescription.
-
Constructor Details
-
ApplicationExceptionFactory
public ApplicationExceptionFactory()
-
-
Method Details
-
create
Recreates ApplicationException object from serialized ErrorDescription. It tries to restore original exception type using type or error category fields.- Parameters:
description
- a serialized error description received as a result of remote call- Returns:
- new ApplicationException object from serialized ErrorDescription.
-