I have asked the same questions regarding exception reporting some time ago.
(I did not receive any feedback / comments though)
If you want to make changes to he source yourself to accomodate better
exception reporting, please look for a thread in the archive where I
suggested a possible change to FieldValidator.java that reports the field
name when validating simple types
Rgds
Andre
================================
> -----Original Message-----
> From: SS Zabiullah-a13771 [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, 27 August, 2001 12:47
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Validation Exception & Import packages
>
> Hi,
>
> I would like to know
> i) How packages can be specified to be imported during the code generation
> using SourceGenerator ?.
>
> ii) When a validation Exception is thrown how exactly to pin point the
> filed which has caused the exception. The error description is pretty
> generic something like (see below). How to get more information on exact
> field which caused error so a friendly message can be propogated to end
> users pointing the right field.
>
> -------------------------------------------------------------
> Location is XPATH: LoginRequest/Header
> ValidationException: objects of this type must match the following
> regular expr
> ession: [0-9]{2};
> - location of error: XPATH: LoginRequest/Header
> ValidationException: objects of this type must match the following
> regular expr
> ession: [0-9]{2};
> - location of error: XPATH: LoginRequest/Header
>
> org.xml.sax.SAXParseException: The root element is required in a
> well-formed doc
> ument.{file: [not available]; line: 1; column: 1}
> ----------------------------------------------------------------
>
> Thanks very much
>
> Rgds,
> Zabi.
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev