protected function formatExceptionError(Exception $e, $fallbackMessage = null)
    {
        if (    (config('app.debug') || $this->core->config('debug'))
            &&  $this->core->apiConfig('debug.local-exception-trace', true)
        ) {
            return $this->formatExceptionErrorForLocal($e, $fallbackMessage);
        }

        $message = $e->getMessage() ?: $fallbackMessage;

        return [
            'message' => $message,
        ];
    }