Sha256: 2cbc1f3703c8b6b8987e16b94541be273981e1356e806318bbfc67437dae3f42
Contents?: true
Size: 544 Bytes
Versions: 5
Compression:
Stored size: 544 Bytes
Contents
module Dnsimple class Error < StandardError end class RequestError < Error attr_reader :response def initialize(response) @response = response super("#{response.code}") end end class NotFoundError < RequestError 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
5 entries across 5 versions & 1 rubygems