framework changes
setError was replaced by exceptions