exceptions
scrapli.exceptions
ScrapliAuthenticationFailed
¶
Bases: ScrapliException
Exception for scrapli authentication issues
Source code in scrapli/exceptions.py
59 60 | |
ScrapliCommandFailure
¶
Bases: ScrapliException
Exception for scrapli command/config failures
Source code in scrapli/exceptions.py
71 72 | |
ScrapliConnectionError
¶
Bases: ScrapliException
Exception for underlying connection issues
Source code in scrapli/exceptions.py
63 64 | |
ScrapliConnectionNotOpened
¶
Bases: ScrapliException
Exception for trying to operate on a transport which has not been opened
Source code in scrapli/exceptions.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
__init__(message: Optional[str] = None) -> None
¶
Scrapli connection not opened exception
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
Optional[str]
|
optional message |
None
|
Returns:
| Type | Description |
|---|---|
None
|
None |
Source code in scrapli/exceptions.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
ScrapliException
¶
Bases: Exception
Base Exception for all scrapli exceptions
Source code in scrapli/exceptions.py
5 6 | |
ScrapliModuleNotFound
¶
Bases: ScrapliException
ModuleNotFound but for scrapli related issues
Source code in scrapli/exceptions.py
9 10 | |
ScrapliPrivilegeError
¶
Bases: ScrapliException
Exception for all privilege related scrapli issues
Source code in scrapli/exceptions.py
75 76 | |
ScrapliTimeout
¶
Bases: ScrapliException
Exception for any scrapli timeouts
Source code in scrapli/exceptions.py
67 68 | |
ScrapliTransportPluginError
¶
Bases: ScrapliException
Exception for transport plugin issues
Source code in scrapli/exceptions.py
25 26 | |
ScrapliTypeError
¶
Bases: ScrapliException
TypeError but for scrapli related typing issues
Source code in scrapli/exceptions.py
13 14 | |
ScrapliUnsupportedPlatform
¶
Bases: ScrapliException
Exception for unsupported platform; i.e. using system transport on windows
Source code in scrapli/exceptions.py
21 22 | |
ScrapliValueError
¶
Bases: ScrapliException
ValueError but for scrapli related value issues
Source code in scrapli/exceptions.py
17 18 | |