Sha256: 12b670fd9dd2de09d8d1b643e65664de93d912e8d201a936b7303702fd1b1392

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

module DNSimple

  class Error < StandardError
  end

  class RecordExists < Error
  end

  class RecordNotFound < Error
  end

  # An exception that is raised if a method is called with missing or invalid parameter values.
  class ValidationError < Error
  end

  class RequestError < Error
    def initialize(description, response)
      super("#{description}: #{response["error"]}")
    end
  end

  class AuthenticationError < Error
  end

  class AuthenticationFailed < AuthenticationError
  end

  # An exception that is raised if a request is executed for an account that requires two-factor authentication.
  class TwoFactorAuthenticationRequired < AuthenticationError
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dnsimple-ruby-1.7.1 lib/dnsimple/error.rb
dnsimple-ruby-1.7.0 lib/dnsimple/error.rb
dnsimple-ruby-1.6.0 lib/dnsimple/error.rb