Create the response for the given operation and exception.
public createResponse ( Tolerance\Operation\Operation $operation, Exception | Throwable $throwable ) : mixed | ||
$operation | Tolerance\Operation\Operation | |
$throwable | Exception | Throwable | |
return | mixed |