Sha256: 1f57cf432c480254ab20f7da2b8cbf8f2d42b35652fa0d17f1497544637a5461
Contents?: true
Size: 715 Bytes
Versions: 6
Compression:
Stored size: 715 Bytes
Contents
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