catching_josh 1.0.0+1
catching_josh: ^1.0.0+1 copied to clipboard
A Flutter package that makes try-catch operations elegant and customizable with beautiful error logging and flexible error handling options.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
Planned #
- Performance optimizations
- Additional utility functions
- Extended documentation and examples
1.0.0+1 - 2025-08-25 #
Added #
- Initial release of CatchingJosh package
- Core error handling functions:
joshSync(),joshAsync(),joshReq() - Flexible error handling with
ErrorHandleTypeenum - Beautiful formatted error logging system
- HTTP response validation for network requests
- Comprehensive test coverage for all core functions
Core Features #
joshSync<T>()- Synchronous error handling with loggingjoshAsync<T>()- Asynchronous error handling for Future operations- `joshReq - HTTP/network request handling with response validation
- Error handling types: returnNull, rethrowError, throwError
- Customizable logging: success/error log control
- Message titles and custom error messages
Technical Details #
- Dart/Flutter package with zero external dependencies
- Beautiful box-formatted logging output
- Stack trace extraction and formatting
- HTTP response status validation
- MIT License