[FAST-4] Session.error() discarding important debug info Created: 12/May/08  Updated: 24/Oct/08  Resolved: 24/Oct/08

Status: Resolved
Project: OpenFAST
Component/s: Session Control Protocol
Affects Version/s: 0.9.8
Fix Version/s: 1.0.1

Type: Bug Priority: Default
Reporter: Christopher Helck Assignee: Jacob Northey
Resolution: Fixed Votes: 0
Labels: None


 Description   

If the ErrorCode is D9_TEMPLATE_NOT_REGISTERED then the original message is discarded. Important information like the template id is lost. This makes finding the original problem much harder. I don't understand why the original message is being replaced, but perhaps the original message could be appended to the new one?

public void error(ErrorCode code, String message) {
if (code.equals(FastConstants.D9_TEMPLATE_NOT_REGISTERED))

{ code = SessionConstants.TEMPLATE_NOT_SUPPORTED; message = "Template Not Supported"; }

protocol.onError(this, code, message);
errorHandler.error(code, message);
}


Generated at Wed Nov 27 05:20:00 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.