Sha256: 7378dfc1ba3810b948c53a8ebb063f17c497e484531790f51b2bb22eeea359ac

Contents?: true

Size: 616 Bytes

Versions: 9

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

module Soaspec
  # Standard Error related to Soaspec
  class Error < StandardError; end
  # Error related to a response
  class ResponseError < Error; end
  # Error related to not having a recorded baseline yet
  class BaselineError < Error; 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

9 entries across 9 versions & 1 rubygems

Version Path
soaspec-0.3.11 lib/soaspec/errors.rb
soaspec-0.3.10 lib/soaspec/errors.rb
soaspec-0.3.9 lib/soaspec/errors.rb
soaspec-0.3.8 lib/soaspec/errors.rb
soaspec-0.3.7 lib/soaspec/errors.rb
soaspec-0.3.6 lib/soaspec/errors.rb
soaspec-0.3.3 lib/soaspec/errors.rb
soaspec-0.3.2 lib/soaspec/errors.rb
soaspec-0.3.1 lib/soaspec/errors.rb