TraceToOutput is not supported in JsonResponseHandler
Author: qaWskYerCreated Jun 21, 2025Updated Jun 21, 2025
Realize optional supporting trace for JsonResponseHandler like this:
{
"errors": [
{
"type": "Error",
"message": "Error message",
"code": 500,
"file": "\/app\/User\/domain\/entities\/User.php",
"line": 24,
"trace": TRACE
}
]
}where TRACE as return of $exception->getTrace().
Source: filp/whoops