Sha256: c5f5dd62b299502b4cceb28826611fc387f1fe283f329106c495ab3efe65c982
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 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(block_height, shard) super("Root hash from blockHeight #{block_height}, shard #{shard} was not found.") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voucher-0.3.0 | lib/voucher/errors.rb |