lib/valvat/error.rb in valvat-1.0.1 vs lib/valvat/error.rb in valvat-1.1.0

- old
+ new

@@ -1,10 +1,13 @@ +# frozen_string_literal: true + class Valvat Error = Class.new(RuntimeError) class ViesError < Error - def initialize(faultstring='UNKNOWN') + def initialize(faultstring = 'UNKNOWN') @faultstring = faultstring + super end def to_s "The VIES web service returned the error '#{@faultstring}'." end