Global error handling middleware and utilities for WayrApp Backend API
This module provides error handling capabilities for the WayrApp language learning platform,
including a custom error class, global error handler middleware, and async wrapper utility. It ensures
consistent error responses across all API endpoints and provides proper error logging for debugging
and monitoring purposes.
Key Features:
Custom AppError class for structured application errors
Global error handler middleware for Express applications
Async handler wrapper for automatic error catching
Support for various error types (Zod, Prisma, generic errors)
Consistent error response format across the application
Global error handling middleware and utilities for WayrApp Backend API
This module provides error handling capabilities for the WayrApp language learning platform, including a custom error class, global error handler middleware, and async wrapper utility. It ensures consistent error responses across all API endpoints and provides proper error logging for debugging and monitoring purposes.
Key Features:
Author
Exequiel Trujillo
Since
1.0.0