MCPcopy Index your code
hub / github.com/git/git / P4ServerException

Class P4ServerException

git-p4.py:791–800  ·  view source on GitHub ↗

Base class for exceptions where we get some kind of marshalled up result from the server.

Source from the content-addressed store, hash-verified

789
790
791class 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
803class P4RequestSizeException(P4ServerException):

Callers 1

p4CmdListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected