Sha256: d2a72a557bed7b144535018e9930003438683ea933f768897e158f204cb4a8ae
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
# typed: strict # frozen_string_literal: true module T # Error when user attempts to access payload from a Failure Result. class NoPayloadOnFailureError < StandardError extend Sig sig { void } def initialize super("Attempted to access a payload from a Failure Result. You were probably expecting a Success Result. Check the result with #success? or #failure? before attempting to access the payload.") # rubocop:disable Layout/LineLength end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sorbet-result-0.1.1 | lib/t/no_payload_on_failure_error.rb |
sorbet-result-0.1.0 | lib/t/no_payload_on_failure_error.rb |