godreams/admin-server

View on GitHub
app/exceptions/donations/delete_not_allowed_exception.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Donations
  class DeleteNotAllowedException < ApplicationException
    def initialize
      @code = :delete_not_allowed
      @message = 'You are not allowed to delete donations'
      @description = 'Only a National Finance Head or a Fellow are allowed to delete donations. You are not registered as either.'
      @status = 401
    end
  end
end