Converts a CORBA CyclicDependencyDetected to an instance of this class.
Note that unlike the constructor AcsJErrTest0Ex(ErrorTrace), this static conversion method does not wrap the existing chain of exceptions with a new exception. It simply converts all exceptions found in the ErrorTrace of corbaEx to the corresponding Java exceptions, knowing that the top level exception is of type CyclicDependencyDetected and can always be converted to AcsJCyclicDependencyDetectedEx .
Here's an example of how to use this method in a Java program that makes a call so some other component etc.:
private void methodThatMakesARemoteCall() throws AcsJCyclicDependencyDetectedEx
{
try
{
// this fakes the remote call to a method
// which can throw an CyclicDependencyDetectedEx...
throw new CyclicDependencyDetectedEx();
}
catch (CyclicDependencyDetectedEx corbaEx)
{
throw AcsJCyclicDependencyDetectedEx.fromCyclicDependencyDetectedEx(corbaEx);
}
}
- Parameters:
-
| corbaEx | the CORBA equivalent of this class; will be converted |
- Returns:
- the newly created instance, with data fields and caused-by exceptions converted from
corbaEx .
|