Sha256: e4d080d56dea9e5faa49553428c40b95fc08ec73be69132895c106d58b2c686f
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true class SelfData Error = Class.new(StandardError) class NoDataFound < Error attr_reader :file def initialize(file = nil) @file = file super("No data found in #{file}") end end class ConverterNotFound < Error attr_reader :format def initialize(format = nil) @format = format super("Not found converter for #{format}") end end class ConversionError < Error attr_reader :real_error, :format def initialize(format = nil, real_error = nil) @format = format @real_error = real_error super("#{format}: #{real_error.inspect}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
self_data-1.3.0 | lib/self_data/errors.rb |
self_data-1.2.1 | lib/self_data/errors.rb |
self_data-1.2.0 | lib/self_data/errors.rb |
self_data-1.1.0 | lib/self_data/errors.rb |