exceptions
RadiusException
ServerPacketError
Bases: RadiusException
Exception class for bogus packets. ServerPacketError exceptions are only used inside the Server class to abort processing of a packet.
Timeout
Bases: RadiusException
Simple exception class which is raised when a timeout occurs while waiting for a RADIUS server to respond.
PacketError
Bases: RadiusException
Raised when the packet is invalid.
IdentifierExhausted
Bases: RadiusException
All 256 RADIUS Identifier slots on a single (source IP, port) flow are currently in flight.
RFC 2865 §3 caps the Identifier field at one octet. Callers that hit this need to either wait for an in-flight request to complete, open a second source port to get a fresh 256-id space, or queue.
Source code in pyrad2/exceptions.py
ParseError
Bases: RadiusException
Exception raised for errors while parsing RADIUS dictionary files.
Attributes:
| Name | Type | Description |
|---|---|---|
msg |
str
|
Error message. |
file |
str
|
Dictionary file the error originated in, if known. |
line |
int
|
Line number, or |