module DNSimple class Error < StandardError end class DomainError < DNSimple::Error def initialize(domain, messages) @domain = domain @messages = messages super "An error occurred: #{messages}" end end class RecordExists < DomainError def initialize(domain, message) super(domain, message) end end class RecordNotFound < DNSimple::Error; end class AuthenticationFailed < DNSimple::Error def initialize(message="Authentication failed") super(message) end end class UserNotFound < DNSimple::Error; end class CertificateExists < DNSimple::Error; end class CertificateNotFound < DNSimple::Error; end end