Sha256: 7848ad82cf549ab806b5b18801b867006809c631103fca96293f367539026d11

Contents?: true

Size: 505 Bytes

Versions: 3

Compression:

Stored size: 505 Bytes

Contents

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.29 lib/soaspec/errors.rb
soaspec-0.2.28 lib/soaspec/errors.rb
soaspec-0.2.27 lib/soaspec/errors.rb