Exception: Moderate::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/moderate/errors.rb

Overview

Base class for every error this gem raises. Host apps can rescue ‘Moderate::Error` to catch anything the gem throws without coupling to a specific subclass.

NOTE: 0.x already defined ‘Moderate::Error` (a bare StandardError used by the profanity word-list downloader). We keep the exact same constant so any host code that rescued it on the old gem keeps working — see “Upgrading from 0.x” in the README. The class is just re-homed here in 1.0.

Direct Known Subclasses

ConfigurationError