Exception: BetterService::Errors::Configuration::InvalidSchemaError

Inherits:
ConfigurationError show all
Defined in:
lib/better_service/errors/configuration/invalid_schema_error.rb

Overview

Raised when a service schema definition is invalid

This error is raised when the Dry::Schema definition contains syntax errors or invalid validation rules.

Examples:

Invalid schema definition

class MyService < BetterService::Services::Base
  schema do
    required(:email).filled(:invalid_type)  # Invalid type
  end
end

Schema with syntax error

class MyService < BetterService::Services::Base
  schema do
    required(:name)  # Missing predicate
  end
end

Instance Attribute Summary

Attributes inherited from BetterServiceError

#code, #context, #original_error, #timestamp

Method Summary

Methods inherited from BetterServiceError

#backtrace, #detailed_message, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from BetterService::BetterServiceError