Coverage for dxf/exceptions.py : 72%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Module containing exceptions thrown by :mod:`dxf`. """
""" Base exception class for all dxf errors """
""" Unexpected value error """ """ :param got: Actual value received :param expected: Value that was expected """
""" Unexpected HTTP status code """ return 'expected status code %d, got %d' % (self.expected, self.got)
""" Digest didn't match expected value """ return 'expected digest %s, got %s' % (self.expected, self.got)
""" Cryptographic key type not supported """ return 'expected key type %s, got %s' % (self.expected, self.got)
""" Digest method not supported """ return 'expected digest method %s, got %s' % (self.expected, self.got)
""" Signature algorithm forbidden """ """ :param alg: Forbidden signature algorithm :type alg: str """ super(DXFDisallowedSignatureAlgorithmError, self).__init__() self.alg = alg
return 'disallowed signature algorithm: %s' % self.alg
""" Signature chains not supported """ return 'verification with a cert chain is not implemented'
""" Registry returned authorized error """
""" Can't authenticate over insecure (non-HTTPS) connection """ return 'Auth requires HTTPS'
""" https://github.com/docker/distribution/issues/1662#issuecomment-213101772 A schema1 manifest should always produce the same image id but defining the steps to produce directly from the manifest is not straight forward." """ return 'Schema 1 manifest has no configuration blob. See https://github.com/docker/distribution/issues/1662#issuecomment-213101772' |