Search in sources :

Example 1 with MyAcsJException

use of alma.acs.callbacks.Objects.MyAcsJException 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)1 MyAcsJCompletion (alma.acs.callbacks.Objects.MyAcsJCompletion)1 MyAcsJException (alma.acs.callbacks.Objects.MyAcsJException)1 AcsJException (alma.acs.exceptions.AcsJException)1