Skip to main content

GetErrorCode

Gets the error code of the passed error if it has one.

def GetErrorCode(
e: error
) - > tuple

Gets the error code of the passed error if it has one.

Parameters

NameTypeDescription
eerrorThe error object to check for an error code.

Returns

TypeDescription
tupleA tuple containing the ErrorCode and a boolean indicating if an error code was found.