Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES
Hook: Define New Error Code
Requirement
A new type of error can occur in a process and a message and error code need to be assigned.
Method of Adaptation
Augment feature
Level of Support
Parameter Pattern
HotSpot
Processes
Hooks used
Define a new process
,
Incorporate a new process
Participants
NewProcess
Changes
NewProcess =
Define a new process
[NewProcess].
NewProcess defines error code constant. This is an int value which is not in the interval [
ERR_LOWERBOUND
,
ERR_UPPERBOUND
].
NewProcess.getErrorMsg overrides
SaleProcess.getErrorMsg
:
synchronisation (
NewProcess.getErrorMsg
,
SaleProcess.getErrorMsg
).
NewProcess.getErrorMsg returns error message string for the new error code.
NewProcess.getErrorMsg returns SaleProcess.getErrorMsg for any other error code.
Incorporate a new process
[Process = NewProcess].
Comments
You can use '%o' anywhere in your error message to parameterize it. Every occurrence of '%o' will be replaced by the extra information given when the error occurred.
Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES