Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ipaaca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
ipaaca
Commits
1885b618
Commit
1885b618
authored
11 years ago
by
Ramin Yaghoubzadeh Torky
Browse files
Options
Downloads
Patches
Plain Diff
Corrected/added exceptions
parent
2fec3228
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ipaacalib/python/src/ipaaca/__init__.py
+7
-2
7 additions, 2 deletions
ipaacalib/python/src/ipaaca/__init__.py
with
7 additions
and
2 deletions
ipaacalib/python/src/ipaaca/__init__.py
+
7
−
2
View file @
1885b618
...
@@ -157,10 +157,15 @@ class IUNotFoundError(Exception):
...
@@ -157,10 +157,15 @@ class IUNotFoundError(Exception):
def
__init__
(
self
,
iu_uid
):
def
__init__
(
self
,
iu_uid
):
super
(
IUNotFoundError
,
self
).
__init__
(
'
Lookup of IU
'
+
str
(
iu_uid
)
+
'
failed.
'
)
super
(
IUNotFoundError
,
self
).
__init__
(
'
Lookup of IU
'
+
str
(
iu_uid
)
+
'
failed.
'
)
class
IUPayloadLockTimeoutError
(
Exception
)
class
IUPayloadLockTimeoutError
(
Exception
)
:
"""
Error indicating that exclusive access to the Payload could not be obtained in time.
"""
"""
Error indicating that exclusive access to the Payload could not be obtained in time.
"""
def
__init__
(
self
,
iu
):
def
__init__
(
self
,
iu
):
super
(
IUPayloadLockTimeoutError
,
self
).
__init__
(
'
Timeout while accessing payload of IU
'
+
str
(
iu
.
uid
)
+
'
.
'
)
super
(
IUPayloadLockTimeoutError
,
self
).
__init__
(
'
Timeout while accessing payload of IU
'
+
str
(
iu
.
uid
)
+
'
.
'
)
class
IUPayloadLockedError
(
Exception
):
"""
Error indicating that exclusive access to the Payload could not be obtained because someone actually locked it.
"""
def
__init__
(
self
,
iu
):
super
(
IUPayloadLockedError
,
self
).
__init__
(
'
IU
'
+
str
(
iu
.
uid
)
+
'
was locked during access attempt.
'
)
## --- Generation Architecture -----------------------------------------------
## --- Generation Architecture -----------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment