Search in sources :

Example 1 with MyAcsJCompletion

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;
}
Also used : Completion(alma.ACSErr.Completion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion)

Example 2 with MyAcsJCompletion

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;
}
Also used : Completion(alma.ACSErr.Completion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) AcsJException(alma.acs.exceptions.AcsJException) MyAcsJException(alma.acs.callbacks.Objects.MyAcsJException) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) MyAcsJException(alma.acs.callbacks.Objects.MyAcsJException)

Aggregations

Completion (alma.ACSErr.Completion)2 MyAcsJCompletion (alma.acs.callbacks.Objects.MyAcsJCompletion)2 MyAcsJException (alma.acs.callbacks.Objects.MyAcsJException)1 AcsJException (alma.acs.exceptions.AcsJException)1