08c8ddbca656d3cfc88d8f9065b9f6b6223a9fd6
3 namespace seekat\Exception
;
6 * Canonical error message from a string or Exception
7 * @param string|Exception $error
10 function message(&$error) : string {
11 if ($error instanceof \Throwable
) {
12 $message = $error->getMessage();
15 $error = new \
Exception($error);