Download SIMPROCESS and Dispatcher
Transcript
SIMPROCESS and Dispatcher Usage Comments Call after determining that an error at the service has occurred to see if an exception resulted and get more detailed information. 6.4.2.7 Check for Instance or Optimizer Error public boolean instanceError(String token) Method Determine if an error occurred in the most recent Description command sent to the SIMPROCESS instance or optimizer identified by the unique token. Service: Set to UNKNOWN_INSTANCE if the token is Error settings unknown; otherwise NOERR. after call Instance: Not changed This call does not get passed to the specified instance Special or optimizer, and therefore does not delay its timeout. Conditions Usage Comments Call after most instance or optimizer operations to determine if a non-zero error (any error other than NOERR) exists in the instance’s or optimizer’s error manager. Any time this call returns true, first confirm that the service’s error number is NOERR and then check the instance’s or optimizer’s value. 6.4.2.8 Last Instance or Optimizer Error Number public int lastInstanceError(String token) Method Get last error number for the SIMPROCESS instance or Description optimizer identified by the unique token. Service: Changed to UNKNOWN_INSTANCE if the Error settings token is unknown; otherwise NOERR. after call Instance: Not changed This call does not get passed to the specified instance Special or optimizer, and therefore does not delay its timeout. Conditions Usage Comments Call after most instance or optimizer operations to obtain the current error number value from an instance’s or optimizer’s error manager. An invalid token returns UNKNOWN_INSTANCE. 6.4.2.9 Get Instance or Optimizer Error Message public String getInstanceErrorMessage(String token) Method Retrieves the text corresponding to the current error Description number of the instance or optimizer identified by the unique token. 19