SalesPoint Framework v3.0

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

  1. NewProcess = Define a new process [NewProcess].
  2. NewProcess defines error code constant. This is an int value which is not in the interval [ ERR_LOWERBOUND , ERR_UPPERBOUND ].
  3. NewProcess.getErrorMsg overrides SaleProcess.getErrorMsg :
    1. synchronisation ( NewProcess.getErrorMsg , SaleProcess.getErrorMsg ).
    2. NewProcess.getErrorMsg returns error message string for the new error code.
    3. NewProcess.getErrorMsg returns SaleProcess.getErrorMsg for any other error code.
  4. Incorporate a new process [Process = NewProcess].

Comments


SalesPoint Framework v3.0