On Wed, 18 Feb 2009 10:45:50 +0100, Emmanuel Bernard
??? UnsupportedTypeException or should it be
Or just AmbiguousConstraintException?
??? initialize() must raise a RTE will be wrapped OR should we
isValid incompatible type (detected by impl) => same as
"declared property type property has no match"
isValid throws a RTE will be wrapped into
ConstraintValidatorFactory fails with RTE. Wraps it.
??? should we collapse that into a ConstraintExecutionException or even
I could imagine to just use ValidationException in the case of
I don't know which different type of action a developer should take in the
case these exception exist. And is ConstraintExcecutionException not really
just another name for ValidationException?
cannot read XML cong
more than one XML conf
no no-arg constructor on classes described by XML
cannot read XML mapping
entity described more than once
field/getter described more than once
Wrong class / field / getter name
Wrong constraint declaration
Wrong constraint definition
What's about combining ConfigurationException and MappingException into
B. EXCEPTION MODEL
We have three approaches:
1. specialize an exception when the application can do something about it
In this case all exceptions are ValidationException except
+1 for this approach.