Sha256: deec1cf86469bd1010f44e7734a15e730fb0ea9b1d572729e784fea9eb7d62ee

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module Segmentor
  module Errors
    # NotificationError can be raised by a notification block to indicate that
    # the notification should not be sent.
    class NotificationError < StandardError
      attr_reader :target

      def initialize(target)
        @target = target
        super('Notification error')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
segmentor-0.0.2.3 lib/segmentor/errors/notification_error.rb
segmentor-0.0.2.2 lib/segmentor/errors/notification_error.rb
segmentor-0.0.2.1 lib/segmentor/errors/notification_error.rb
segmentor-0.0.1 lib/segmentor/errors/notification_error.rb