just one exception for bad names
This commit is contained in:
parent
9ee3c3b043
commit
91ed02bf5e
@ -12,12 +12,8 @@ class InvalidOperation(Exception):
|
||||
"""Raised when a client attempts to perform an invalid operation.
|
||||
"""
|
||||
|
||||
class InvalidDatabaseName(ValueError):
|
||||
"""Raised when an invalid database name is used.
|
||||
"""
|
||||
|
||||
class InvalidCollectionName(ValueError):
|
||||
"""Raised when an invalid collection name is used.
|
||||
class InvalidName(ValueError):
|
||||
"""Raised when an invalid name is used.
|
||||
"""
|
||||
|
||||
class InvalidBSON(ValueError):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user