File: no_redis_error.rb

package info (click to toggle)
ruby-classifier-reborn 2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,424 kB
  • sloc: ruby: 2,021; makefile: 7
file content (12 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
class NoRedisError < LoadError
  def initialize
    msg =
      %q{The Redis Backend can only be used if Redis is installed.
        This error is raised from 'lib/classifier-reborn/backends/bayes_redis_backend.rb'.
        If you have encountered this error and would like to use the Redis Backend,
        please run 'gem install redis' or include 'gem "redis"' in
        your gemfile. For more info see https://github.com/jekyll/classifier-reborn#usage.
      }
    super(msg)
  end
end