Extract TaintedException into a separate class