bloom_errors 0.2.1
bloom_errors: ^0.2.1 copied to clipboard
Strongly-typed HTTP error hierarchy, sibling package error mapping, and dev/prod error-rendering middleware for Bloom.
Changelog #
0.2.1 - 2026-08-25 #
Fixed #
- fix: bump bloom_server dependency constraint from ^0.1.0 to ^0.2.0 — the stale constraint was incompatible with any sibling package (bloom_cache, bloom_i18n) requiring bloom_server ^0.2.0, breaking pub get in any app combining them.
0.2.0 - 2026-08-23 #
Breaking #
- Now depends on
bloom_serverinstead ofbloom_framework. Imports change frompackage:bloom_framework/bloom_server.darttopackage:bloom_server/bloom_server.dart. - No longer requires Flutter. The package now resolves against the Flutter-free
bloom_servercore, so it can be used from a plaindart run/dart compilebackend.
0.1.0 #
- Initial release of
bloom_errors. BloomHttpExceptionbase 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)
BloomErrorMapperregistry for mapping arbitrary domain and sibling package exceptions (frombloom_db,bloom_auth_server,bloom_storage,bloom_validate,bloom_migrate, etc.) to HTTP exceptions without introducing tight coupling or dependency cycles.BloomErrorMiddlewarefor global exception interception, dev-vs-prod masking viaAPP_ENV, and uniform JSON error payloads.