def __init__(self,
                 status=enums.ResultStatus.OPERATION_FAILED,
                 reason=enums.ResultReason.GENERAL_FAILURE,
                 message='A general failure occurred.'):
        super(KmipError, self).__init__(message)
        self.status = status
        self.reason = reason
Create a KmipError exception.
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/core/exceptions.py/KmipError.__init__