# consistent-error-handling > Choose a consistent error handling approach: exceptions, Result types, or error callbacks Use when maintaining consistent code style. Style category skill. - Author: OmniaffixDave - Repository: OmniaffixDave/SessionGuardian - Version: 20260205125233 - Stars: 0 - Forks: 1 - Last Updated: 2026-02-08 - Source: https://github.com/OmniaffixDave/SessionGuardian - Web: https://mule.run/skillshub/@@OmniaffixDave/SessionGuardian~consistent-error-handling:20260205125233 --- --- name: consistent-error-handling description: "Choose a consistent error handling approach: exceptions, Result types, or error callbacks Use when maintaining consistent code style. Style category skill." metadata: category: Style priority: medium is-built-in: true session-guardian-id: builtin_consistent_error_handling --- # Consistent Error Handling Choose a consistent error handling approach: exceptions, Result types, or error callbacks. Don't mix styles arbitrarily. Use custom error classes with meaningful names (UserNotFoundError, ValidationError). Include relevant context in errors. Handle errors at appropriate levels—don't catch and ignore. Log errors with consistent structure. Document error handling patterns in the project.