EventStreamDataException
extends RuntimeException
in package
Represents an exception that was supplied via an EventStream.
Table of Contents
Methods
- __construct() : mixed
- get() : mixed|null
- Get a modeled member of the exception event.
- getAwsErrorCode() : string|null
- Get the AWS error code.
- getAwsErrorMessage() : string|null
- Get the concise error message if any.
- hasKey() : bool
- Check if a modeled member of the exception event is set.
Methods
__construct()
public
__construct(string $code, string $message[, array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $code : string
-
the exception type of the event
- $message : string
- $data : array<string|int, mixed> = []
-
the modeled members of the exception event
get()
Get a modeled member of the exception event.
public
get(string $key) : mixed|null
Parameters
- $key : string
Return values
mixed|nullgetAwsErrorCode()
Get the AWS error code.
public
getAwsErrorCode() : string|null
Return values
string|null —Returns null if no response was received
getAwsErrorMessage()
Get the concise error message if any.
public
getAwsErrorMessage() : string|null
Return values
string|nullhasKey()
Check if a modeled member of the exception event is set.
public
hasKey(string $name) : bool
Parameters
- $name : string