Sha256: 3c5f758d05e31463f5b87a52c7c0c60e24d2ded7cf172e9c326218d94410fe5a

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

require 'forwardable'

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

  module Errors
    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-1.2.1 lib/metaractor/errors.rb
metaractor-1.2.0 lib/metaractor/errors.rb
metaractor-1.1.0 lib/metaractor/errors.rb