diaspora/diaspora_federation

View on GitHub
lib/diaspora_federation/federation/receiver/exceptions.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module DiasporaFederation
  module Federation
    module Receiver
      # Raised, if the sender of the {Salmon::MagicEnvelope} is not allowed to send the entity.
      class InvalidSender < RuntimeError
      end

      # Raised, if receiving a private message without recipient.
      class RecipientRequired < RuntimeError
      end

      # Raised, if receiving a message with public receiver which is not public but should be.
      class NotPublic < RuntimeError
      end
    end
  end
end