/**
 * Error Handling Package
 * Provides comprehensive error handling for BaoLife.
 */

export {
  // Error classes
  GameError,
  InsufficientResourcesError,
  ServerError,
  PlayerNotFoundError,
  InvalidActionError,
  ValidationError,
  RateLimitError,
  DatabaseError,
  // Error codes
  ErrorCodes,
  type ErrorCode,
  // Types
  type SendToClientFn,
  type ErrorHandlerOptions,
  type ErrorPayload,
  // Utilities
  formatErrorForClient,
  formatUnknownErrorForClient,
  logError,
  sendErrorToClient,
  handleErrors,
  handleErrorsSync,
  // Type guards
  isGameError,
  isInsufficientResourcesError,
  isServerError,
  isRateLimitError,
  // Helpers
  createErrorResponse,
  // Manager
  errorHandler,
} from './error_handler.js';
