Search in sources :

Example 1 with GenericErrorAcsJCompletion

use of alma.ACSErrTypeCommon.wrappers.GenericErrorAcsJCompletion in project ACS by ACS-Community.

the class ErrorComponentImpl method completionFromCompletion.

/**
	 * 
	 * @see alma.acsexmplErrorComponent.ErrorComponentOperations#completionFromCompletion(short)
	 */
@Override
public Completion completionFromCompletion(short depth) {
    AcsJCompletion completion = null;
    if (depth <= 1) {
        completion = internalCompletionMethod(depth);
        return completion.toCorbaCompletion();
    } else {
        completion = internalCompletionMethod(depth - 1);
        // here we show how to wrap the error from a given completion with a new completion
        AcsJCompletion newCompletion = new GenericErrorAcsJCompletion(completion);
        return newCompletion.toCorbaCompletion();
    }
}
Also used : GenericErrorAcsJCompletion(alma.ACSErrTypeCommon.wrappers.GenericErrorAcsJCompletion) AcsJCompletion(alma.acs.exceptions.AcsJCompletion) ACSErrOKAcsJCompletion(alma.ACSErrTypeOK.wrappers.ACSErrOKAcsJCompletion) GenericErrorAcsJCompletion(alma.ACSErrTypeCommon.wrappers.GenericErrorAcsJCompletion)

Aggregations

GenericErrorAcsJCompletion (alma.ACSErrTypeCommon.wrappers.GenericErrorAcsJCompletion)1 ACSErrOKAcsJCompletion (alma.ACSErrTypeOK.wrappers.ACSErrOKAcsJCompletion)1 AcsJCompletion (alma.acs.exceptions.AcsJCompletion)1