
from __future__ import print_function, division


class ArtifactsError(RuntimeError):
    """Base for all exceptions raised by the Artifacts library"""


class ArtifactoryApiError(ArtifactsError):
    """Root for errors interacting with the Artifactory REST API"""

    def __init__(self, *args, **kwargs):
        #: HTTP status code returned by the Artifactory REST API
        self.code = kwargs.pop('code', None)

        #: URL used for making a request to the Artifactory REST API
        self.url = kwargs.pop('url', None)

        super(ArtifactoryApiError, self).__init__(*args, **kwargs)


class NoReleaseArtifactsError(ArtifactoryApiError):
    """There were no release artifacts for the project in the given repository"""


class NoArtifactVersionsError(ArtifactoryApiError):
    """There were no versions for the project in the given repository"""


from __future__ import print_function, division

__all__ = [
    'ArtifactsError',
    'ArtifactoryApiError',
    'NoReleaseArtifactsError',
    'NoArtifactVersionsError'
]


class ArtifactsError(RuntimeError):
    """Base for exceptions raised by the Artifacts library"""


class ArtifactoryApiError(ArtifactsError):
    """Base for errors interacting with the Artifactory REST API"""

    def __init__(self, *args, **kwargs):
        #: HTTP status code returned by the Artifactory REST API
        self.code = kwargs.pop('code', None)

        #: URL used for making a request to the Artifactory REST API
        self.url = kwargs.pop('url', None)

        super(ArtifactoryApiError, self).__init__(*args, **kwargs)


class NoReleaseArtifactsError(ArtifactoryApiError):
    """There were no release artifacts for the project in the given repository"""


class NoArtifactVersionsError(ArtifactoryApiError):
    """There were no versions for the project in the given repository"""

Add __all__ variable to enforce ordering in docs
Add __all__ variable to enforce ordering in docs

  
  from __future__ import print_function, division
  
+ __all__ = [
+     'ArtifactsError',
+     'ArtifactoryApiError',
+     'NoReleaseArtifactsError',
+     'NoArtifactVersionsError'
+ ]
+ 
  
  class ArtifactsError(RuntimeError):
-     """Base for all exceptions raised by the Artifacts library"""
+     """Base for exceptions raised by the Artifacts library"""
  
  
  class ArtifactoryApiError(ArtifactsError):
-     """Root for errors interacting with the Artifactory REST API"""
+     """Base for errors interacting with the Artifactory REST API"""
  
      def __init__(self, *args, **kwargs):
          #: HTTP status code returned by the Artifactory REST API
          self.code = kwargs.pop('code', None)
  
          #: URL used for making a request to the Artifactory REST API
          self.url = kwargs.pop('url', None)
  
          super(ArtifactoryApiError, self).__init__(*args, **kwargs)
  
  
  class NoReleaseArtifactsError(ArtifactoryApiError):
      """There were no release artifacts for the project in the given repository"""
  
  
  class NoArtifactVersionsError(ArtifactoryApiError):
      """There were no versions for the project in the given repository"""
  
Add __all__ variable to enforce ordering in docs
## Code Before:

from __future__ import print_function, division


class ArtifactsError(RuntimeError):
    """Base for all exceptions raised by the Artifacts library"""


class ArtifactoryApiError(ArtifactsError):
    """Root for errors interacting with the Artifactory REST API"""

    def __init__(self, *args, **kwargs):
        #: HTTP status code returned by the Artifactory REST API
        self.code = kwargs.pop('code', None)

        #: URL used for making a request to the Artifactory REST API
        self.url = kwargs.pop('url', None)

        super(ArtifactoryApiError, self).__init__(*args, **kwargs)


class NoReleaseArtifactsError(ArtifactoryApiError):
    """There were no release artifacts for the project in the given repository"""


class NoArtifactVersionsError(ArtifactoryApiError):
    """There were no versions for the project in the given repository"""

## Instruction:
Add __all__ variable to enforce ordering in docs
## Code After:

from __future__ import print_function, division

__all__ = [
    'ArtifactsError',
    'ArtifactoryApiError',
    'NoReleaseArtifactsError',
    'NoArtifactVersionsError'
]


class ArtifactsError(RuntimeError):
    """Base for exceptions raised by the Artifacts library"""


class ArtifactoryApiError(ArtifactsError):
    """Base for errors interacting with the Artifactory REST API"""

    def __init__(self, *args, **kwargs):
        #: HTTP status code returned by the Artifactory REST API
        self.code = kwargs.pop('code', None)

        #: URL used for making a request to the Artifactory REST API
        self.url = kwargs.pop('url', None)

        super(ArtifactoryApiError, self).__init__(*args, **kwargs)


class NoReleaseArtifactsError(ArtifactoryApiError):
    """There were no release artifacts for the project in the given repository"""


class NoArtifactVersionsError(ArtifactoryApiError):
    """There were no versions for the project in the given repository"""
