[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xml-dev] [SAX] setProperty and exception
- From: Kohsuke KAWAGUCHI <firstname.lastname@example.org>
- To: email@example.com
- Date: Fri, 28 Sep 2001 16:31:12 -0700
XMLReader#setProperty can throw two types of exceptions. One is
"not-recognized" and the other is "not-supported".
But it seems to me that we need the third "bad-value" exception, which
indicates that the property name is recognized and supported but the
specified value is wrong. (For example, String is passed where Integer
is expected, or 127 was passed where the valid value is between 0 and
What is the right exception to throw for cases like this?