Documentation

Class: DumpHaltException

Full name: Clarity\Debug\DumpHaltException

Thrown by dd() when DumpOptions::haltWithException() is set. It carries the rendered dump, so the host can send it as the response.

The host must catch this exception at the request boundary. If nothing catches it, it propagates like any other uncaught error.

Public Properties

  • public readonly string $context ·
  • public readonly string $output ·

Public methods

__construct() ·

public function __construct(string $context, string $output): mixed

Parameters

Name Type Default Description
$context string - The escape context of the dd() call: 'html', 'js' or 'css'.
$output string - The rendered dump for that context.

Return value

  • Type: mixed

Back to the Index