$additionalDetails
$additionalDetails : array
Additional details to include in report.
Object describing an API-Problem payload.
__construct(integer $status, string|\Pivot\Core\Models\Exception|\Pivot\Core\Models\Throwable $detail = '', string $type = null, string $title = null, array $additional = array())
Constructor.
Create an instance using the provided information. If nothing is provided for the type field, the class default will be used; if the status matches any known, the title field will be selected from $problemStatusTitles as a result.
integer | $status | |
string|\Pivot\Core\Models\Exception|\Pivot\Core\Models\Throwable | $detail | |
string | $type | |
string | $title | |
array | $additional |
fromApiProblemException(\Pivot\Core\Exceptions\ApiProblemException $e)
\Pivot\Core\Exceptions\ApiProblemException | $e |
setDetailIncludesStackTrace(boolean $flag) : \Pivot\Core\Models\ApiProblem
Set the flag indicating whether an exception detail should include a stack trace and previous exception information.
boolean | $flag |