Sha256: 84f6f09b3228d5aa59b11e74059b7ec624274db5781204f83dc528f4db7d4be3
Contents?: true
Size: 286 Bytes
Versions: 1
Compression:
Stored size: 286 Bytes
Contents
# frozen_string_literal: true require "pp" module Speculation class Error < StandardError attr_reader :data def initialize(message, data) super(message) @data = data.merge(:cause => message) end def to_s PP.pp(@data, String.new) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
speculation-0.1.0 | lib/speculation/error.rb |