Sha256: 9d20296ddc3a90036f0347c51be00c94efa44194234dbb8f08e9bc4409dc93d8
Contents?: true
Size: 1.46 KB
Versions: 21
Compression:
Stored size: 1.46 KB
Contents
# frozen_string_literal: true module Thredded class Error < StandardError end module Errors class DatabaseEmpty < Thredded::Error def message 'Seed the database with "rake db:seed".' end end class LoginRequired < Thredded::Error def message I18n.t('thredded.errors.login_required') end end class UserNotFound < Thredded::Error def message 'This user could not be found. Is their name misspelled?' end end class PrivateTopicNotFound < Thredded::Error def message I18n.t('thredded.errors.private_topic_not_found') end end class TopicNotFound < Thredded::Error def message 'This topic does not exist.' end end class MessageboardNotFound < Thredded::Error def message 'This messageboard does not exist.' end end class MessageboardReadDenied < Thredded::Error def message 'You are not authorized access to this messageboard.' end end class MessageboardCreateDenied < Thredded::Error def message 'You are not authorized to create a new messageboard.' end end class TopicCreateDenied < Thredded::Error def message 'You are not authorized to post in this messageboard.' end end class PrivateTopicCreateDenied < Thredded::Error def message I18n.t('thredded.errors.private_topic_create_denied') end end end end
Version data entries
21 entries across 21 versions & 2 rubygems