M
mike
Hi,
I am looking at the following code. If an UnsupportedEncodingException
is thrown in getDD() how will that be handled by the code. Am I
missing something? what is good practice?
cheers,
//mike
public void myMethod {
try {
incomingDialog.sendStatus(dialog.getDD());
} catch (IOException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.NETWORKERROR, e);
}
}
The code above will call this code:
protected Object getDD() {
if (dd == null) {
try {
this.dd = invite.getContent();
} catch (UnsupportedEncodingException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.MIMEERROR, e);
} catch (IOException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.NETWORKERROR, e);
}
}
return dd;
}
I am looking at the following code. If an UnsupportedEncodingException
is thrown in getDD() how will that be handled by the code. Am I
missing something? what is good practice?
cheers,
//mike
public void myMethod {
try {
incomingDialog.sendStatus(dialog.getDD());
} catch (IOException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.NETWORKERROR, e);
}
}
The code above will call this code:
protected Object getDD() {
if (dd == null) {
try {
this.dd = invite.getContent();
} catch (UnsupportedEncodingException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.MIMEERROR, e);
} catch (IOException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.NETWORKERROR, e);
}
}
return dd;
}