Sha256: 4dfc52524ccf9001f06cb5f1b639f3cfa6b60eddd65a3b60224b53f44498deb8
Contents?: true
Size: 810 Bytes
Versions: 12
Compression:
Stored size: 810 Bytes
Contents
module JobNotifier module Error class InvalidIdentifier < Exception def initialize super("you need to pass a non blank identifier") end end class MissingAttributes < Exception def initialize super("you need to execute identify_job_through method on host model") end end class BlankAttribute < Exception def initialize(attribute) super("#{attribute} cant be blank") end end class InvalidAdapter < Exception def initialize file_names = JobNotifier::Adapters.names.join(", ") super("The adapter must be one of: #{file_names}") end end class Validation < Exception attr_reader :error def initialize(error) super @error = error end end end end
Version data entries
12 entries across 12 versions & 1 rubygems