class ExceptionMapper

internal  
 

Map service and protocol failures without invoking the HTTP exception renderer.

Methods

__construct(ExceptionHandler $exceptions)

No description

map(Throwable $throwable)

Map a failure raised while handling a gRPC call.

invalidResponse(Throwable $throwable)

Map an invalid service return value or streamed item.

void
report(Throwable $throwable)

Report a failure without allowing the reporter to replace it.

Details

at line 21
__construct(ExceptionHandler $exceptions)

No description

Parameters

ExceptionHandler $exceptions

at line 28
RpcException map(Throwable $throwable)

Map a failure raised while handling a gRPC call.

Parameters

Throwable $throwable

Return Value

RpcException

at line 50
RpcException invalidResponse(Throwable $throwable)

Map an invalid service return value or streamed item.

Parameters

Throwable $throwable

Return Value

RpcException

at line 60
void report(Throwable $throwable)

Report a failure without allowing the reporter to replace it.

Parameters

Throwable $throwable

Return Value

void