Eno\Error » message

message → string

Contains both the error text as well as the snippet. This is also what you get in the console when you don't catch the error.

phptry {
  // ...
} catch(Error $e) {
  $e->message;  // returns "In line 4 'a' is copied into itself.\n\n   Line | Content\n ..."
}

Return value

Both the error text as well as the snippet.