use of alma.acs.callbacks.Objects.MyAcsJCompletion in project ACS by ACS-Community.
the class ResponderUtil method giveCompletion.
public static Completion giveCompletion() {
/* DONE: Use AcsJCompletion instead of this straightforward code
* int errorType = 0;
* int errorCode = 0;
* long timeStamp = 0L;
* ErrorTrace[] previousError = new ErrorTrace[]{};
* return new Completion(timeStamp, errorType, errorCode, previousError);
*/
Completion ret;
MyAcsJCompletion c = new MyAcsJCompletion(0, 0);
ret = c.toCorbaCompletion();
return ret;
}
use of alma.acs.callbacks.Objects.MyAcsJCompletion in project ACS by ACS-Community.
the class ResponderUtil method giveCompletion.
// ========================================================
// ===================== Response =======================
// ========================================================
public static Completion giveCompletion(Exception exc) {
Completion ret;
// wrap Exception in a AcsJException
AcsJException acsJExc = new MyAcsJException(exc);
// wrap AcsJException in a AcsJCompletion
MyAcsJCompletion c = new MyAcsJCompletion(acsJExc);
// transform AcsJCompletion to a Completion
ret = c.toCorbaCompletion();
return ret;
}
Aggregations