Uses of Class
org.pipservices4.commons.errors.ApplicationException
Packages that use ApplicationException
-
Uses of ApplicationException in org.pipservices4.commons.errors
Subclasses of ApplicationException in org.pipservices4.commons.errorsModifier and TypeClassDescriptionclassErrors due to improper user requests.classErrors related to mistakes in the microservice's user-defined configurations.classErrors raised by conflicts between object versions that were posted by the user and those that are stored on the server.classErrors that occur during connections to remote services.classErrors in read/write file operationsclassErrors caused by programming mistakesclassErrors related to operations called in wrong component state.classErrors returned by remote services or network during call attemptsclassError caused by attempt to access missing objectclassAccess errors caused by missing user identity (authentication error) or incorrect security permissions (authorization error).classUnknown or unexpected errorsclassErrors caused by calls to unsupported or not yet implemented functionalityMethods in org.pipservices4.commons.errors that return ApplicationExceptionModifier and TypeMethodDescriptionstatic ApplicationExceptionApplicationExceptionFactory.create(ErrorDescription description) Recreates ApplicationException object from serialized ErrorDescription.Sets a original error wrapped by this exceptionSets a unique error code.ApplicationException.withDetails(String key, Object value) Sets a parameter for additional error details.ApplicationException.withStackTrace(String stackTrace) Sets a stack trace for this error.ApplicationException.withStatus(int status) Sets a HTTP status code which shall be returned by REST calls.ApplicationException.withtraceId(String traceId) Sets a correlation id which can be used to trace this error through a call chain.Wraps another exception into an application exception object.static ApplicationExceptionApplicationException.wrapException(ApplicationException error, Throwable cause) Wraps another exception into specified application exception object.Methods in org.pipservices4.commons.errors with parameters of type ApplicationExceptionModifier and TypeMethodDescriptionstatic ApplicationExceptionApplicationException.wrapException(ApplicationException error, Throwable cause) Wraps another exception into specified application exception object.