Sha256: db19b172fcaaf2d53b11b9912b2f25583181a3e6a57057b2b75e3ed1ba0c93b1
Contents?: true
Size: 746 Bytes
Versions: 6
Compression:
Stored size: 746 Bytes
Contents
# frozen_string_literal: true module Dry module Transaction class InvalidStepError < ArgumentError def initialize(step_name) super("step +`#{step_name}`+ must respond to `#call`") end end class MissingStepError < ArgumentError def initialize(step_name) super("Definition for step +`#{step_name}`+ is missing") end end class InvalidResultError < ArgumentError def initialize(step_name) super("step +#{step_name}+ must return a Result object") end end class MissingCatchListError < ArgumentError def initialize(step_name) super("step +#{step_name}+ requires one or more exception classes provided via +catch:+") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems