https://bugzilla.redhat.com/show_bug.cgi?id=1562840

            Bug ID: 1562840
           Summary: Review Request: golang-gopkg-warnings-0 - Error
                    handling with non-fatal errors (warnings)
           Product: Fedora
           Version: rawhide
         Component: Package Review
          Severity: medium
          Priority: medium
          Assignee: nob...@fedoraproject.org
          Reporter: domi...@greysector.net
        QA Contact: extras...@fedoraproject.org
                CC: package-review@lists.fedoraproject.org



Spec URL:
https://rathann.fedorapeople.org/review/golang-gopkg-warnings-0/golang-gopkg-warnings-0.spec
SRPM URL:
https://rathann.fedorapeople.org/review/golang-gopkg-warnings-0/golang-gopkg-warnings-0-0.1.2-1.fc27.src.rpm
Description:
A recurring programming pattern pattern is to allow interrupting the flow on
any
received error. But what if there are errors that should be noted but still not
fatal, for which the flow should not be interrupted? Implementing such logic at
each if statement would make the code complex and the flow much harder to
follow.

Package warnings provides the Collector type and a clean and simple pattern for
achieving such logic. The Collector takes care of deciding when to break the
flow and when to continue, collecting any non-fatal errors (warnings) along the
way. The only requirement is that fatal and non-fatal errors can be
distinguished programmatically.

Fedora Account System Username: rathann

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@lists.fedoraproject.org
To unsubscribe send an email to package-review-le...@lists.fedoraproject.org

Reply via email to