MCPcopy Create free account
hub / github.com/alibaba/graph-learn / __init__

Method __init__

graphlearn/python/errors.py:27–36  ·  view source on GitHub ↗

Creates a new `BaseError` indicating a particular fail. Args: message: The message string describing the failure. error_code: The `pywrap.ErrorCode.Code` describing the error.

(self, message, error_code)

Source from the content-addressed store, hash-verified

25 """
26
27 def __init__(self, message, error_code):
28 """Creates a new `BaseError` indicating a particular fail.
29
30 Args:
31 message: The message string describing the failure.
32 error_code: The `pywrap.ErrorCode.Code` describing the error.
33 """
34 super(BaseError, self).__init__()
35 self._message = message
36 self._error_code = error_code
37
38 @property
39 def message(self):

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected