Sha256: fd7504fbff64a3c354e151019d0495ef7f3869b933a8e322746e456a533e88c7

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

module MakeFlaggable
  module Exceptions
    class AlreadyFlaggedError < StandardError
      def initialize
        super "The flaggable was already flagged by this flagger."
      end
    end

    class NotFlaggedError < StandardError
      def initialize
        super "The flaggable was not flagged by the flagger."
      end
    end

    class InvalidFlaggableError < StandardError
      def initialize
        super "Invalid flaggable."
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
make_flaggable-0.0.3 lib/make_flaggable/exceptions.rb
make_flaggable-0.0.2 lib/make_flaggable/exceptions.rb