def __init__(self, reason=ErrorReason.NO_ERROR, error_code=None, error_detail=''):
    ' Constructs a DISCONNECT-State with given reason (``ErrorReason``\n        enum), error id and additional information provided as string.\n\n        '
    self._error_code = error_code
    self._error_detail = error_detail
    self._error_reason = reason
Constructs a DISCONNECT-State with given reason (``ErrorReason``
enum), error id and additional information provided as string.
def __init__(self, reason=ErrorReason.NO_ERROR, error_code=None, error_detail=):
    ' Constructs a DISCONNECT-State with given reason (``ErrorReason``\n        enum), error id and additional information provided as string.\n\n        '
    self._error_code = error_code
    self._error_detail = error_detail
    self._error_reason = reason