RuntimeException

Class
extends RuntimeException
Final: Yes

Represent runtime failures raised by the event dispatcher package.

Table of Contents

Methods

forCacheInvalidationFailure()

Create an exception for a cache invalidation failure.

 : self
forListenerParameterWithoutType()

Create an exception for a listener callable whose first parameter has no type.

 : self
forListenerWithoutParameters()

Create an exception for a listener callable without parameters.

 : self
forMethodParameterWithoutType()

Create an exception for a reflected method whose first parameter has no type.

 : self
forMethodWithoutParameters()

Create an exception for a reflected method without parameters.

 : self
forUnsupportedType()

Create an exception for an unsupported listener value.

 : self
forWebhookRequestFailure()

Create an exception for an unsuccessful webhook response.

 : self
__construct()

Prevent direct instantiation outside the named factories.

 : mixed
Methods

forCacheInvalidationFailure()

Public Static

Create an exception for a cache invalidation failure.

public static forCacheInvalidationFailure( array<int, string>  $keys) : self
Parameters
$keys : array<int, string>

Description

cache keys that could not be invalidated

Return values
self

Description

exception describing the cache invalidation failure

forListenerParameterWithoutType()

Public Static

Create an exception for a listener callable whose first parameter has no type.

public static forListenerParameterWithoutType() : self
Return values
self

Description

exception describing the missing listener parameter type

forListenerWithoutParameters()

Public Static

Create an exception for a listener callable without parameters.

public static forListenerWithoutParameters() : self
Return values
self

Description

exception describing the invalid listener signature

forMethodParameterWithoutType()

Public Static

Create an exception for a reflected method whose first parameter has no type.

public static forMethodParameterWithoutType() : self
Return values
self

Description

exception describing the missing method parameter type

forMethodWithoutParameters()

Public Static

Create an exception for a reflected method without parameters.

public static forMethodWithoutParameters() : self
Return values
self

Description

exception describing the invalid reflected method

forUnsupportedType()

Public Static

Create an exception for an unsupported listener value.

public static forUnsupportedType( mixed  $listener) : self
Parameters
$listener : mixed

Description

listener value that could not be resolved

Return values
self

Description

exception describing the unsupported listener type

forWebhookRequestFailure()

Public Static

Create an exception for an unsuccessful webhook response.

public static forWebhookRequestFailure( string  $uri, int  $statusCode) : self
Parameters
$uri : string

Description

webhook URI that returned an unsuccessful response

$statusCode : int

Description

HTTP status code returned by the webhook endpoint

Return values
self

Description

exception describing the webhook publishing failure

__construct()

Private

Prevent direct instantiation outside the named factories.

private __construct([ string  $message = ''][, int  $code = 0][, Throwable|null  $previous = null]) : mixed
Parameters
$message : string = ''

Description

exception message

$code : int = 0

Description

exception code

$previous : Throwable|null = null

Description

previous exception