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();
}
}
Aggregations