Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
bdee1ff2
Commit
bdee1ff2
authored
Aug 11, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standardize exception handling
parent
a620ef41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
lib/ansible/cache/base.py
+9
-6
No files found.
lib/ansible/cache/base.py
View file @
bdee1ff2
import
exceptions
class
BaseCacheModule
(
object
):
class
BaseCacheModule
(
object
):
def
get
(
self
,
key
):
def
get
(
self
,
key
):
raise
NotImplementedError
(
"Subclasses of {} must implement the '{}' method"
.
format
(
self
.
__class__
.
__name__
,
self
.
__name__
))
raise
exceptions
.
NotImplementedError
def
set
(
self
,
key
,
value
):
def
set
(
self
,
key
,
value
):
raise
NotImplementedError
(
"Subclasses of {} must implement the '{}' method"
.
format
(
self
.
__class__
.
__name__
,
self
.
__name__
))
raise
exceptions
.
NotImplementedError
def
keys
(
self
):
def
keys
(
self
):
raise
NotImplementedError
(
"Subclasses of {} must implement the '{}' method"
.
format
(
self
.
__class__
.
__name__
,
self
.
__name__
))
raise
exceptions
.
NotImplementedError
def
contains
(
self
,
key
):
def
contains
(
self
,
key
):
raise
NotImplementedError
(
"Subclasses of {} must implement the '{}' method"
.
format
(
self
.
__class__
.
__name__
,
self
.
__name__
))
raise
exceptions
.
NotImplementedError
def
delete
(
self
,
key
):
def
delete
(
self
,
key
):
raise
NotImplementedError
(
"Subclasses of {} must implement the '{}' method"
.
format
(
self
.
__class__
.
__name__
,
self
.
__name__
))
raise
exceptions
.
NotImplementedError
def
flush
(
self
):
def
flush
(
self
):
raise
NotImplementedError
(
"Subclasses of {} must implement the '{}' method"
.
format
(
self
.
__class__
.
__name__
,
self
.
__name__
))
raise
exceptions
.
NotImplementedError
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment