Base class for exceptions where we get some kind of marshalled up result from the server.
| 789 | |
| 790 | |
| 791 | class P4ServerException(P4Exception): |
| 792 | """Base class for exceptions where we get some kind of marshalled up result |
| 793 | from the server. |
| 794 | """ |
| 795 | |
| 796 | def __init__(self, exit_code, p4_result): |
| 797 | super(P4ServerException, self).__init__(exit_code) |
| 798 | self.p4_result = p4_result |
| 799 | self.code = p4_result[0]['code'] |
| 800 | self.data = p4_result[0]['data'] |
| 801 | |
| 802 | |
| 803 | class P4RequestSizeException(P4ServerException): |