Class ApplicationExceptionFactory

java.lang.Object
org.pipservices3.commons.errors.ApplicationExceptionFactory

public class ApplicationExceptionFactory extends Object
Factory to recreate exceptions from ErrorDescription values passed through the wire.
See Also:
  • Constructor Details

    • ApplicationExceptionFactory

      public ApplicationExceptionFactory()
  • Method Details

    • create

      public static ApplicationException create(ErrorDescription description)
      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.