We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f3bae commit fb125b8Copy full SHA for fb125b8
src/bref/README.md
@@ -425,17 +425,17 @@ use Bref\Context\Context;
425
use Bref\Event\Handler;
426
use Runtime\Bref\Timeout\LambdaTimeout;
427
428
-class Handler implements Handler
+class MySlowHandler implements Handler
429
{
430
public function handle($event, Context $context)
431
432
try {
433
// your code here
434
// ...
435
} catch (LambdaTimeoutException $e) {
436
- echo 'Oops, sorry. We spent too much time on this.';
+ return 'Oops, sorry. We spent too much time on this.';
437
} catch (\Throwable $e) {
438
- echo 'Some other unexpected error happened.';
+ return 'Some other unexpected error happened.';
439
}
440
441
0 commit comments