bloom_errors 0.1.0 copy "bloom_errors: ^0.1.0" to clipboard
bloom_errors: ^0.1.0 copied to clipboard

Strongly-typed HTTP error hierarchy, sibling package error mapping, and dev/prod error-rendering middleware for Bloom.

Changelog #

0.1.0 #

  • Initial release of bloom_errors.
  • BloomHttpException base class and standard subclasses:
    • BloomBadRequestException (bad_request, 400)
    • BloomUnauthorizedException (unauthorized, 401)
    • BloomForbiddenException (forbidden, 403)
    • BloomNotFoundException (not_found, 404)
    • BloomConflictException (conflict, 409)
    • BloomValidationFailedException (validation_failed, 422)
    • BloomTooManyRequestsException (too_many_requests, 429)
    • BloomInternalException (internal_server_error, 500)
  • BloomErrorMapper registry for mapping arbitrary domain and sibling package exceptions (from bloom_db, bloom_auth_server, bloom_storage, bloom_validate, bloom_migrate, etc.) to HTTP exceptions without introducing tight coupling or dependency cycles.
  • BloomErrorMiddleware for global exception interception, dev-vs-prod masking via APP_ENV, and uniform JSON error payloads.
0
likes
0
points
340
downloads

Publisher

unverified uploader

Weekly Downloads

Strongly-typed HTTP error hierarchy, sibling package error mapping, and dev/prod error-rendering middleware for Bloom.

Homepage
Repository (GitHub)
View/report issues

Topics

#bloom #errors #http

License

unknown (license)

Dependencies

bloom_framework

More

Packages that depend on bloom_errors