Since the origin of this error is on user's side, creating a stack trace with an Error is not really useful. You should simply call doError with a plain string.