Sha256: 1d372dad6e779da3525db024cc53935d2460530d9b49a93ea74ac120844aaa9d

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

module Soaspec
  # Standard Error related to Soaspec
  class Error < StandardError; end
  # Error related to a response
  class ResponseError < StandardError; end
end

# Raised to represent when there's no element at an Xpath
class NoElementAtPath < Soaspec::Error
  def initialize(msg = 'No element at path found')
    super
  end
end

# Did not find any element by provided key in the Hash
class NoElementInHash < Soaspec::Error
  def initialize(msg = 'No element in Hash found')
    super
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
soaspec-0.2.32 lib/soaspec/errors.rb
soaspec-0.2.31 lib/soaspec/errors.rb
soaspec-0.2.30 lib/soaspec/errors.rb