Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Defien more exceptions as per #218
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceaulinic committed May 30, 2017
1 parent 20bc1e3 commit d3b7c61
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions napalm_base/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ class ConnectionException(Exception):
pass


class ConnectAuthError(ConnectionException):
'''
Unable to connect to the network device
due to invalid credentials.
'''
pass


class ConnectTimeoutError(ConnectionException):
'''
Connection to the network device takes too long.
'''
pass


class ConnectionClosedException(ConnectionException):
'''
The network device closed the connection.
Expand All @@ -47,6 +62,28 @@ class MergeConfigException(Exception):
pass


class CommitError(Exception):
'''
Raised when unable to commit the candidate config
into the running config.
'''
pass


class LockError(Exception):
'''
Unable to lock the candidate config.
'''
pass


class UnlockError(Exception):
'''
Unable to unlock the candidate config.
'''
pass


class SessionLockedException(Exception):
pass

Expand Down

0 comments on commit d3b7c61

Please sign in to comment.