Skip to content

RuntimeException

github-actions edited this page Apr 6, 2026 · 1 revision

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

Methods

forUnsupportedType

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


forMethodWithoutParameters

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


forMethodParameterWithoutType

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


forListenerWithoutParameters

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


forListenerParameterWithoutType

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


forCacheInvalidationFailure

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


forWebhookRequestFailure

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


Clone this wiki locally