Conditions | 1 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | """Defines an Error Message.""" |
||
42 | 1 | def __init__(self, xid=None, reason=None, desc=None): |
|
43 | """Assign parameters to object attributes. |
||
44 | |||
45 | Args: |
||
46 | xid (int): Header's xid. |
||
47 | reason (~pyof.v0x01.asynchronous.port_status.PortReason): |
||
48 | Addition, deletion or modification. |
||
49 | desc (PhyPort): Port description. |
||
50 | """ |
||
51 | 1 | super().__init__(xid) |
|
52 | 1 | self.reason = reason |
|
53 | self.desc = desc |
||
54 |