Sha256: f6bcad6cd31dd8848c919522d51db90ab41d99bb3dc5a3ba5bb9482bf0c14c1c

Contents?: true

Size: 862 Bytes

Versions: 1

Compression:

Stored size: 862 Bytes

Contents

module Domainic
  module Attributer
    # A specialized error class for validation execution failures
    #
    # This error class is used when one or more validations encounter errors during
    # their execution. It aggregates all validation-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 ValidationExecutionError < AggregateError
      # Initialize a new ValidationExecutionError instance
      #
      # @api private
      # @!visibility private
      #
      # @param errors [Array<StandardError>] the collection of validation errors to aggregate
      #
      # @return [ValidationExecutionError] the new ValidationExecutionError 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/validation_execution_error.rbs