Exception: BetterService::Errors::Runtime::RuntimeError

Inherits:
BetterServiceError show all
Defined in:
lib/better_service/errors/runtime/runtime_error.rb

Overview

Base class for all runtime errors in BetterService

Runtime errors are raised when something goes wrong during service execution due to external factors (database, network, invalid data, etc.). These are not programming errors.

Examples:

raise BetterService::Errors::Runtime::RuntimeError.new(
  "Runtime error occurred",
  code: :runtime_error,
  context: { service: "MyService", operation: "fetch_data" }
)

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