Package overit.geocall.basic
Class ErrorNotifier
java.lang.Object
overit.geocall.da.DATask
overit.geocall.basic.ErrorNotifier
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
This class provides the methods signature that must be set if you have to manage the unhandled exceptions.
Note that this task will be called only if the user has checked the "Send error" field into the error page.
- See Also:
-
Field Summary
FieldsFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody()Abstract method, that must be implemented, that represent the start point of the task.booleanFlag that enable or not the send error feature inside the error page.voidSet the unhandled exception that has been caught by the Servlet and the message the user has been written inside the error page's field.Methods inherited from class overit.geocall.da.DATask
commit, deliverCourier, getConnection, getDA, getIdentity, getServiceConnection, holdFactoryCourier, holdUserCourier, releaseConnection, rollback, run, setIdentity, start, startInBackground, synchronizeOn
-
Field Details
-
t
-
message
-
-
Constructor Details
-
ErrorNotifier
public ErrorNotifier()
-
-
Method Details
-
setError
Set the unhandled exception that has been caught by the Servlet and the message the user has been written inside the error page's field. Note that the message is not mandatory- Parameters:
t- exception instancemessage- the user message
-
isEnabled
public boolean isEnabled()Flag that enable or not the send error feature inside the error page. This method must be override inside the custom notifier.- Returns:
trueto enable the send error feature,falseotherwise
-
body
Description copied from class:DATaskAbstract method, that must be implemented, that represent the start point of the task. The method contains the application logic of the specific task.- Specified by:
bodyin classDATask- Throws:
DAException- If there is a (blocking) data-access error, a DAException is thrown to the callerDAValidateException- If there are error in the data validation phase, a DAValidateException is thrown
-