Commit 18191294 authored by Jan Kuchař's avatar Jan Kuchař

added basic readme

parent 01ce8081
Pipeline #13395 passed with stages
in 46 seconds
# Suppressed exceptions for PHP
Suppressed exceptions are useful for aggregating more exceptions with unreliable resources.
You want to communicate that process failed, with following list of sibling exceptions that led to this error.
$remoteSources = []; // classes representing unreliable remote sources
$exceptions = [];
foreach ($remoteSoures as $remoteSource) {
try {
$remoteSource->fetch(); // unrealiable
} catch (FetchingFailed $e) {
$exceptions[] = $e;
if (count($exceptions) > 0) {
$e = new ProcessingFailed();
throw $e;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment