You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Robert Burrell Donkin <ro...@gmail.com> on 2009/08/04 14:31:35 UTC

[jsieve] Exceptions...

ATM JSieve has three top level exceptions, each extending Exception:

org.apache.jsieve.parser.generated.ParseException
org.apache.jsieve.parser.generated.address.ParseException
org.apache.jsieve.exception.SieveException

i was wondering whether it might be better to consolidate everything
under SieveException. the ParseExceptions are thrown by the generated
code, and in the validation phase (where they are rethrown from
SieveExceptions). the specification destinguishes compile time from
runtime issues, so perhaps the ParseExceptions could inherit from a
SieveScriptCompilationException together with other validation
exceptions.

opinions?

i was also wondering whether SieveException should accept a Coordinate
describing the location within the script where the issue occured

opinions?

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org