InvergeDocs
PHPAPI reference

Errors

Errors in the PHP SDK.

// access
$nexus->errors()

Errors

class
class Inverge\Nexus\Resource\Errors

Error monitoring — report exceptions/messages from your backend.

View source

__construct

constructor
function __construct(Inverge\Nexus\NexusClient $client)

Parameters

Prop

Type

View source

capture()

method
function capture(string $message, array $options = []): array

Capture an error by message.

Parameters

Prop

Type

Returns array<mixed>

View source

captureException()

method
function captureException(Throwable $exception, array $options = []): array

Capture a PHP \Throwable — derives the type, message and a structured stacktrace the console renders.

Parameters

Prop

Type

Returns array<mixed>

View source

On this page