$this->context
['importance'
] =
$importance;
return $this;
} /**
* @return $this
*/
public function exception(\Throwable|FlattenException
$exception):
static { $exceptionAsString =
$this->
getExceptionAsString($exception);
$this->context
['exception'
] = true;
$this->
addPart(new DataPart($exceptionAsString, 'exception.txt', 'text/plain'
));
$this->
importance(self::IMPORTANCE_URGENT
);
if (!
$this->
getSubject()) { $this->
subject($exception->
getMessage());
} return $this;
}