Exception: Synthra::Errors::Error

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

Overview

Base error class for all Synthra errors

All Synthra errors inherit from this class, allowing you to catch all gem-related errors with a single rescue clause.

Examples:

Catch all Synthra errors

begin
  Synthra.load("schema.dsl").generate
rescue Synthra::Errors::Error => e
  logger.error("Synthra error: #{e.message}")
end

Constant Summary collapse

ERROR_CODE =

Machine-readable error code for programmatic error handling

"SYNTHRA_ERROR"