Sha256: 6fae6c21fb1c8627de5c824fb2165afdedc01b4b04904cb09a125f6c002b8b43

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

class Valvat
  Error = Class.new(RuntimeError)

  class ViesError < Error
    def initialize(faultstring='UNKNOWN')
      @faultstring = faultstring
    end

    def to_s
      "The VIES web service returned the error '#{@faultstring}'."
    end

    def eql?(other)
      to_s.eql?(other.to_s)
    end
  end
  ViesMaintenanceError = Class.new(ViesError)

  ServiceUnavailable = Class.new(ViesMaintenanceError)
  MemberStateUnavailable = Class.new(ViesMaintenanceError)

  Timeout = Class.new(ViesError)
  InvalidRequester = Class.new(ViesError)
  BlockedError = Class.new(ViesError)
  RateLimitError = Class.new(ViesError)

  UnknownViesError = Class.new(ViesError)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
valvat-1.0.1 lib/valvat/error.rb