[Bug 1562840] New: Review Request: golang-gopkg-warnings-0 - Error handling with non-fatal errors (warnings)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: nobody@xxxxxxxxxxxxxxxxx
          Reporter: dominik@xxxxxxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: package-review@xxxxxxxxxxxxxxxxxxxxxxx



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux