- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsEventError (0.07 sec)
-
internal/event/errors.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "encoding/xml" "fmt" ) // IsEventError - checks whether given error is event error or not. func IsEventError(err error) bool { switch err.(type) { case ErrInvalidFilterName, *ErrInvalidFilterName: return true case ErrFilterNamePrefix, *ErrFilterNamePrefix: return true
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 4.1K bytes - Viewed (0) -
cmd/bucket-notification-handlers.go
} config, err := event.ParseConfig(io.LimitReader(r.Body, r.ContentLength), globalSite.Region(), globalEventNotifier.targetList) if err != nil { apiErr := errorCodes.ToAPIErr(ErrMalformedXML) if event.IsEventError(err) { apiErr = toAPIError(ctx, err) } writeErrorResponse(ctx, w, apiErr, r.URL) return } configData, err := xml.Marshal(config) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.1K bytes - Viewed (0)