|
From: Steve B. <st...@te...> - 2007-09-14 15:46:41
|
Hi John,
I'm not sure I understand the question. The "field" field in the
FieldNotFound exception is populated by the FieldMap.getField() method if
the queried field is not found. Typically this exception is caught by the
Session and a business reject message is created with the appropriate text
for the error message. The details about the missing field are in the
exception, but there is no formatted text associated with the exception
(in that version of QFJ).
Regards,
Steve
> Do you know what populates the error parameter? I know it is the
> exception message text as you can see in my prior code, which works and
> delivers the text. I was hoping the engine would pass details of all
> exceptions back in some form that can easily be passed back to the
> initiator, and surprised I need to code for this.
>
> TIA
> John
>
>
> private void sendExecutionReportRejection(
> final NewOrderSingle message,
> final SessionID sessionID,
> final String error) throws FieldNotFound {
> final String methodName = "sendExecutionReportRejection: ";
> log.debug(methodName + " started: ");
> ExecutionReport rejectionReport =
> buildExecutionReport(message);
> rejectionReport.set(new ExecType(ExecType.REJECTED));
> rejectionReport.set(new OrdStatus(OrdStatus.REJECTED));
> rejectionReport.set(new OrdRejReason(OrdRejReason.OTHER));
> if (error != null) {
> rejectionReport.set(new Text(error));
> }
> send(rejectionReport, sessionID);
> log.debug(methodName + " finished: ");
> }
>
>
>
> -----Original Message-----
> From: qui...@li...
> [mailto:qui...@li...] On Behalf Of
> Steve Bate
> Sent: 14 September 2007 12:16
> To: qui...@li...
> Subject: Re: [Quickfixj-users] FieldNotFound exceptions with null
> message
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
> Eurobase International Limited and its subsidiaries (Eurobase) are unable
> to exercise control over the content of information in E-Mails. Any views
> and opinions expressed may be personal to the sender and are not
> necessarily those of Eurobase. Eurobase will not enter into any
> contractual obligations in respect of any part of its business in any
> E-mail.
>
> Privileged / confidential information may be contained in this message and
> /or any attachments. This E-mail is intended for the use of the
> addressee(s) only and may contain confidential information. If you are not
> the / an intended recipient, you are hereby notified that any use or
> dissemination of this communication is strictly prohibited. If you
> receive this transmission in error, please notify us immediately, and then
> delete this E-mail.
>
> Neither the sender nor Eurobase accepts any liability whatsoever for any
> defects of any kind either in or arising from this E-mail transmission.
> E-Mail transmission cannot be guaranteed to be secure or error-free, as
> messages can be intercepted, lost, corrupted, destroyed, contain viruses,
> or arrive late or incomplete. Eurobase does not accept any responsibility
> for viruses and it is your responsibility to scan any attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase
> International Group; registered in England and Wales as company number
> 02251162; registered address: Essex House, 2 County Place, Chelmsford,
> Essex CM2 0RE, UK.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
|