Sha256: 2d58c84c474395e6478392d72286ae777739561bac09f857025368edd5944734

Contents?: true

Size: 624 Bytes

Versions: 5

Compression:

Stored size: 624 Bytes

Contents

module Qujo
  module Exceptions

    class ResqueNotLoaded < StandardError
      def initialize(msg = "Resque is undefined")
        super
      end
    end
    class ResqueSchedulerNotLoaded < StandardError
      def initialize(msg = "Resque::Scheduler is undefined")
        super
      end
    end

    class MongoidUndefined < StandardError
      def initialize(msg = "Mongoid is undefined")
        super
      end
    end

    class JobNameUndefined < StandardError
      def initialize(msg = "Job name must match Jobs::ModelName::ActionName or be passed as the :job option")
        super
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qujo-0.1.4 lib/qujo/concerns/exceptions.rb
qujo-0.1.3 lib/qujo/concerns/exceptions.rb
qujo-0.1.2 lib/qujo/concerns/exceptions.rb
qujo-0.1.1 lib/qujo/concerns/exceptions.rb
qujo-0.1.0 lib/qujo/concerns/exceptions.rb