Re: Configuration Error Not Helpful



On Mon, 18 Jul 2005 23:29:02 -0700, Rakesh Rajan <rakeshrajan {at}
mvps {dot} org> wrote:

>Hi Peter,
>
>What kind of error in the configuration section causes the exception to be
>thrown?
>
>Also, are you talking about 'schema' errors?
>
>Do you also require custom configuration requirements wherein you want
>specific attributes as is-required, while other attributes as optional?

It doesn't matter what kind of error it is. A recently added xsd
schema validation, and any error that gets thrown from that gets this
generic message. Previously I was not using a schema and had my own
error checking and threw my own exceptions, and the messages from
those exceptions never got displayed.

In this particular case all attributes are required. I have another
portion of the site which uses xml files and those have some optional
attributes (I specify a default value for them in the schema).
Exceptions thrown by that validation show up in full on the browser
when they happen. Exceptions thrown by the configuration code result
in an unhelpful generic message that does not indicate what the
problem is.

.


Quantcast