james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Burrell Donkin <robertburrelldon...@gmail.com>
Subject [jsieve] Exceptions...
Date Tue, 04 Aug 2009 12:31:35 GMT
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


Mime
View raw message