Sha256: 7e9bdc1d3a21e1d2f702c7987b2c4379ebe3c21a9c842f51527a63094a01e2bf

Contents?: true

Size: 842 Bytes

Versions: 1

Compression:

Stored size: 842 Bytes

Contents

module Domainic
  module Attributer
    # A specialized error class for callback execution failures
    #
    # This error class is used when one or more callbacks fail during attribute value
    # changes. It aggregates all callback-related errors into a single error with a
    # descriptive message listing each individual failure
    #
    # @author {https://aaronmallen.me Aaron Allen}
    # @since 0.2.0
    class CallbackExecutionError < AggregateError
      # Initialize a new CallbackExecutionError instance
      #
      # @api private
      # @!visibility private
      #
      # @param errors [Array<StandardError>] the collection of callback errors to aggregate
      #
      # @return [CallbackExecutionError] the new CallbackExecutionError instance
      def initialize: (Array[StandardError] errors) -> void
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
domainic-attributer-0.2.0 sig/domainic/attributer/errors/callback_execution_error.rbs