Module: RailsAiBridge::ServiceErrors

Defined in:
lib/rails_ai_bridge/service_errors.rb

Overview

Service-specific error hierarchy for consistent error handling.

Provides a base error class and specific error types for different failure scenarios in service operations. Inherits from existing top-level error classes to maintain consistent error taxonomy.

Examples:

Raising a service error

raise RailsAiBridge::ServiceErrors::ValidationError, "Invalid input data"

Rescue pattern

begin
  # service operation
rescue RailsAiBridge::ServiceErrors::NotFoundError => e
  Service::Result.new(false, errors: [e.message])
end

Defined Under Namespace

Classes: AuthorizationError, BaseError, ConfigurationError, IntrospectionError, NotFoundError, SerializationError, ValidationError