pragmarb/pragma-rails

View on GitHub
lib/pragma/rails/errors.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Pragma
  module Rails
    # Raised when an operation doesn't set a +result.response+ skill.
    class NoResponseError < StandardError
      def initialize
        super <<~MESSAGE
          Your operation did not return a `result.response` skill, which might mean one of the following:

            * The execution of the operation halted early (maybe one of your steps returned a falsey value?).
            * You forgot to set a `result.response` skill in a custom operation.
        MESSAGE
      end
    end
  end
end