M
mike
Hi,
I need to catch an exception from my code in package B.
This is the try-catch of the calling code in package A:
try {
String dialogId =
context.getScenario().createNewDialog(agentAddress);
context.setBPartyDialogId(dialogId);
context.pushTargetedState(new
CallToAgentIsBeingSetUp(context));
} catch (SipException se) {
logger.severe("Agent address" + agentAddress + "
could not be parsed.");
hangUp();
}
The code I am trying to call is located in another package B.
try {
address = myFactory.createAddress(presentationAddress);
} catch (ServletParseException e) {
throw new SipException(Reason.PARSEERROR, e);
}
Since Package B already has a dependency to package A the addition of
a try-catch of SipException will force me to import a SipException.
And then I will have a cyclic dependency that I want to avoid.
Any suggestions on how I can handle this?
cheers,
//mike
I need to catch an exception from my code in package B.
This is the try-catch of the calling code in package A:
try {
String dialogId =
context.getScenario().createNewDialog(agentAddress);
context.setBPartyDialogId(dialogId);
context.pushTargetedState(new
CallToAgentIsBeingSetUp(context));
} catch (SipException se) {
logger.severe("Agent address" + agentAddress + "
could not be parsed.");
hangUp();
}
The code I am trying to call is located in another package B.
try {
address = myFactory.createAddress(presentationAddress);
} catch (ServletParseException e) {
throw new SipException(Reason.PARSEERROR, e);
}
Since Package B already has a dependency to package A the addition of
a try-catch of SipException will force me to import a SipException.
And then I will have a cyclic dependency that I want to avoid.
Any suggestions on how I can handle this?
cheers,
//mike