Sha256: 90f2fe0cd701623b3f6def722dabd7f1a60926cfcd6765ad366abde2384a6d1a

Contents?: true

Size: 472 Bytes

Versions: 3

Compression:

Stored size: 472 Bytes

Contents

module Metaractor
  class Error < StandardError; end
  class InvalidError < Error; end

  module HandleErrors
    def fail_with_error!(*args)
      context.fail_with_error!(*args)
    end

    def fail_with_errors!(*args)
      context.fail_with_errors!(*args)
    end

    def add_error(*args)
      context.add_error(*args)
    end

    def add_errors(*args)
      context.add_errors(*args)
    end

    def error_messages
      context.error_messages
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metaractor-2.1.1 lib/metaractor/handle_errors.rb
metaractor-2.1.0 lib/metaractor/handle_errors.rb
metaractor-2.0.0 lib/metaractor/handle_errors.rb