Exception: Synthra::Errors::ResourceLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/synthra/errors.rb

Overview

Base class for resource limit exceeded errors

ResourceLimitError and its subclasses are raised when generation would exceed configured safety limits. These limits prevent accidental resource exhaustion during testing.

Examples:

Handling limit errors

begin
  schema.generate
rescue Synthra::ResourceLimitError => e
  puts "Limit exceeded: #{e.message}"
  puts "Configure limits via Synthra.configure"
end

Constant Summary collapse

ERROR_CODE =
"RESOURCE_LIMIT_ERROR"