chore: linted with auto-fix

This commit is contained in:
Matthew Raymer
2025-04-09 07:17:21 +00:00
parent 41c0f32544
commit 669ecbd1eb
9 changed files with 77 additions and 56 deletions

View File

@@ -1,7 +1,7 @@
/**
* API error handling utilities for the application.
* Provides centralized error handling for API requests with platform-specific logging.
*
*
* @module api
*/
@@ -10,12 +10,12 @@ import { logger } from "../utils/logger";
/**
* Handles API errors with platform-specific logging and error processing.
*
*
* @param error - The Axios error object from the failed request
* @param endpoint - The API endpoint that was called
* @returns null for rate limit errors (400), throws the error otherwise
* @throws The original error for non-rate-limit cases
*
*
* @remarks
* Special handling includes:
* - Enhanced logging for Capacitor platform
@@ -25,7 +25,7 @@ import { logger } from "../utils/logger";
* - HTTP status
* - Response data
* - Request configuration (URL, method, headers)
*
*
* @example
* ```typescript
* try {