You are here

public function Js::decodeException in JS Callback Handler 8.3

Decodes an exception and retrieves the correct caller.

Parameters

\Exception|\Throwable $exception: The exception object that was thrown.

Return value

array An error in the format expected by \Drupal\js\Error::logError.

1 call to Js::decodeException()
Js::exceptionHandler in src/Js.php
Provides custom PHP exception handling.

File

src/Js.php, line 184

Class

Js
JS Callback Handler service.

Namespace

Drupal\js

Code

public function decodeException($exception) {
  return Error::decodeException($exception);
}