/** @param error The error to set. */
 public void setError(Throwable error) {
   this.error = error;
   this.errorStackTrace = error == null ? null : Util.getStackTraceAsString(error);
 }