Uses of Class
org.pipservices3.commons.errors.ApplicationException
Package
Description
-
Uses of ApplicationException in org.pipservices3.commons.commands
Modifier and TypeMethodDescriptionCommand.execute
(String correlationId, Parameters args) Executes the command.CommandSet.execute
(String correlationId, String commandName, Parameters args) Executes a ICommand command specified by its name.ICommandInterceptor.execute
(String correlationId, ICommand command, Parameters args) Executes the wrapped command with specified arguments.InterceptedCommand.execute
(String correlationId, Parameters args) Executes the next command in the execution chain using the given Parameters parameters (arguments).void
CommandSet.notify
(String correlationId, String eventName, Parameters args) Fires event specified by its name and notifies all registered IEventListener listenersvoid
Event.notify
(String correlationId, Parameters args) Fires this event and notifies all registered listeners. -
Uses of ApplicationException in org.pipservices3.commons.errors
Modifier and TypeClassDescriptionclass
Errors due to improper user requests.class
Errors related to mistakes in the microservice's user-defined configurations.class
Errors raised by conflicts between object versions that were posted by the user and those that are stored on the server.class
Errors that occur during connections to remote services.class
Errors in read/write file operationsclass
Errors caused by programming mistakesclass
Errors related to operations called in wrong component state.class
Errors returned by remote services or network during call attemptsclass
Error caused by attempt to access missing objectclass
Access errors caused by missing user identity (authentication error) or incorrect security permissions (authorization error).class
Unknown or unexpected errorsclass
Errors caused by calls to unsupported or not yet implemented functionalityModifier and TypeMethodDescriptionstatic ApplicationException
ApplicationExceptionFactory.create
(ErrorDescription description) Recreates ApplicationException object from serialized ErrorDescription.Sets a original error wrapped by this exceptionSets a unique error code.ApplicationException.withCorrelationId
(String correlationId) Sets a correlation id which can be used to trace this error through a call chain.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.Wraps another exception into an application exception object.static ApplicationException
ApplicationException.wrapException
(ApplicationException error, Throwable cause) Wraps another exception into specified application exception object.Modifier and TypeMethodDescriptionstatic ApplicationException
ApplicationException.wrapException
(ApplicationException error, Throwable cause) Wraps another exception into specified application exception object. -
Uses of ApplicationException in org.pipservices3.commons.refer
Modifier and TypeClassDescriptionclass
Error when required component dependency cannot be found.Modifier and TypeMethodDescriptionvoid
Puts a new reference into this reference map.Removes a previously added reference that matches specified locator.Removes all component references that match the specified locator. -
Uses of ApplicationException in org.pipservices3.commons.run
Modifier and TypeMethodDescriptionstatic void
Clears state of multiple components.void
Clears component state.static void
Clears state of specific component.static void
Closes multiple components.void
Closes the timer.void
Closes component and frees used resources.static void
Closes specific component.Executor.execute
(String correlationId, Iterable<Object> components, Parameters args) Executes multiple components.IExecutable.execute
(String correlationId, Parameters args) Executes component with arguments and receives execution result.static Object
Executor.executeOne
(String correlationId, Object component, Parameters args) Executes specific component.void
INotifiable.notify
(String correlationId, Parameters args) Notifies the component about occured event.static void
Notifier.notify
(String correlationId, Iterable<Object> components, Parameters args) Notifies multiple components.static void
Notifier.notifyOne
(String correlationId, Object component, Parameters args) Notifies specific component.void
Opens the component.static void
Opens multiple components.static void
Opens specific component. -
Uses of ApplicationException in org.pipservices3.commons.validate