~ubuntu-branches/ubuntu/trusty/python-jenkinsapi/trusty-proposed

« back to all changes in this revision

Viewing changes to jenkinsapi/exceptions.py

  • Committer: Package Import Robot
  • Author(s): Al Stone
  • Date: 2012-07-24 16:40:44 UTC
  • Revision ID: package-import@ubuntu.com-20120724164044-da634emdsqj867jv
Tags: upstream-0.1.11
ImportĀ upstreamĀ versionĀ 0.1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class ArtifactsMissing(Exception):
 
2
    """
 
3
    Cannot find a build with all of the required artifacts.
 
4
    """
 
5
 
 
6
class UnknownJob( KeyError ):
 
7
    """
 
8
    Jenkins does not recognize the job requested.
 
9
    """
 
10
 
 
11
class ArtifactBroken(Exception):
 
12
    """
 
13
    An artifact is broken, wrong
 
14
    """
 
15
 
 
16
class TimeOut( Exception ):
 
17
    """
 
18
    Some jobs have taken too long to complete.
 
19
    """
 
20
 
 
21
class WillNotBuild(Exception):
 
22
    """
 
23
    Cannot trigger a new build.
 
24
    """
 
25
 
 
26
class NoBuildData(Exception):
 
27
    """
 
28
    A job has no build data.
 
29
    """
 
30
 
 
31
class NoResults(Exception):
 
32
    """
 
33
    A build did not publish any results.
 
34
    """
 
35
 
 
36
class FailedNoResults(NoResults):
 
37
    """
 
38
    A build did not publish any results because it failed
 
39
    """
 
40
 
 
41
class BadURL(ValueError):
 
42
    """
 
43
    A URL appears to be broken
 
44
    """
 
45
 
 
46
class NotFound(Exception):
 
47
    """
 
48
    Resource cannot be found
 
49
    """
 
50
 
 
51
class NotAuthorized(Exception):
 
52
    """Not Authorized to access resource"""
 
53
    # Usually thrown when we get a 403 returned
 
54
 
 
55
class NotSupportVCS(Exception):
 
56
    """
 
57
    It's a job that doesn't support vcs
 
58
    """