Sha256: 910bc50f03b1aaf7a7061272a7ff565d43dd7feb98971cd26506daec06df822f
Contents?: true
Size: 358 Bytes
Versions: 3
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true module Voucher class VoucherError < StandardError; end class InvalidSegment < VoucherError def initialize super('Segment not found in the winning hash') end end class RootHashNotFound < VoucherError def initialize(shard) super("Root hash from shard #{shard} was not found.") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
voucher-0.2.1 | lib/voucher/errors.rb |
voucher-0.1.1 | lib/voucher/errors.rb |
voucher-0.1.0 | lib/voucher/errors.rb |