'Convert a response code (one of the possible values of
L{dns.Message.rCode} to an exception instance representing it.
@since: 10.0'

def exceptionForCode(self, responseCode):

    return self._errormap.get(responseCode, DNSUnknownError)
