RuntimeException
Represent runtime failures raised by the event dispatcher package.
Methods
Create an exception for a cache invalidation failure.
Create an exception for a listener callable whose first parameter has no type.
Create an exception for a listener callable without parameters.
Create an exception for a reflected method whose first parameter has no type.
Create an exception for a reflected method without parameters.
Create an exception for an unsupported listener value.
Create an exception for an unsuccessful webhook response.
Prevent direct instantiation outside the named factories.
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
Description
exception describing the cache invalidation failure
Create an exception for a listener callable whose first parameter has no type.
public
static
forListenerParameterWithoutType() : self
Return values
Description
exception describing the missing listener parameter type
Create an exception for a listener callable without parameters.
public
static
forListenerWithoutParameters() : self
Return values
Description
exception describing the invalid listener signature
Create an exception for a reflected method whose first parameter has no type.
public
static
forMethodParameterWithoutType() : self
Return values
Description
exception describing the missing method parameter type
Create an exception for a reflected method without parameters.
public
static
forMethodWithoutParameters() : self
Return values
Description
exception describing the invalid reflected method
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
Description
exception describing the unsupported listener type
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
Description
exception describing the webhook publishing failure
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