summaryrefslogtreecommitdiff
path: root/docs/php/error-handling.md
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-10 15:46:02 +0300
committerValery Piashchynski <[email protected]>2021-09-10 15:46:02 +0300
commit8fa86886bd5b3c12cf161fb2c1cdd9a2cd53d1bf (patch)
tree852269ac09c0bcefba6e508fc04263dc061fa87b /docs/php/error-handling.md
parent8b70fb48b2b0a9451d9b82a17ac2f4cd8a1f561e (diff)
Remove docs
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'docs/php/error-handling.md')
-rw-r--r--docs/php/error-handling.md23
1 files changed, 0 insertions, 23 deletions
diff --git a/docs/php/error-handling.md b/docs/php/error-handling.md
deleted file mode 100644
index b8487f36..00000000
--- a/docs/php/error-handling.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# Error Handling
-There are multiple ways of how you can handle errors produces by PHP workers.
-
-The simplest and most common way would be responding to parent service with the error message using `getWorker()->error()`:
-
-```php
-try {
- $resp = new \Zend\Diactoros\Response();
- $resp->getBody()->write("hello world");
-
- $psr7->respond($resp);
-} catch (\Throwable $e) {
- $psr7->getWorker()->error((string)$e);
-}
-```
-
-You can also flush your warning and errors into `STDERR` to output them directly into the console (similar to docker-compose).
-
-```php
-file_put_contents('php://stderr', 'my message');
-```
-
-Since RoadRunner 2.0 all warnings send to STDOUT will be forwarded to STDERR as well. \ No newline at end of file