-
-
Notifications
You must be signed in to change notification settings - Fork 0
RuntimeException
Represent runtime failures raised by the event dispatcher package.
- Full name:
\FastForward\EventDispatcher\Exception\RuntimeException - Parent class:
RuntimeException - This class is marked as final and can't be subclassed
- This class is a Final class
Create an exception for an unsupported listener value.
public static forUnsupportedType(mixed $listener): self- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$listener |
mixed | listener value that could not be resolved |
Return Value:
exception describing the unsupported listener type
Create an exception for a reflected method without parameters.
public static forMethodWithoutParameters(): self- This method is static. Return Value:
exception describing the invalid reflected method
Create an exception for a reflected method whose first parameter has no type.
public static forMethodParameterWithoutType(): self- This method is static. Return Value:
exception describing the missing method parameter type
Create an exception for a listener callable without parameters.
public static forListenerWithoutParameters(): self- This method is static. Return Value:
exception describing the invalid listener signature
Create an exception for a listener callable whose first parameter has no type.
public static forListenerParameterWithoutType(): self- This method is static. Return Value:
exception describing the missing listener parameter type
Create an exception for a cache invalidation failure.
public static forCacheInvalidationFailure(list<string> $keys): self- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$keys |
list | cache keys that could not be invalidated |
Return Value:
exception describing the cache invalidation failure
Create an exception for an unsuccessful webhook response.
public static forWebhookRequestFailure(string $uri, int $statusCode): self- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$uri |
string | webhook URI that returned an unsuccessful response |
$statusCode |
int | HTTP status code returned by the webhook endpoint |
Return Value:
exception describing the webhook publishing failure