Sha256: 9ec2e9e04d2adec9cb8bdd71a289f28d34c1fbc6e1952e5d0f9fda13578046c9

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

module Thredded
  class Error < StandardError
  end

  module Errors
    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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.0.10 lib/thredded/errors.rb
thredded-0.0.9 lib/thredded/errors.rb
thredded-0.0.8 lib/thredded/errors.rb