MegaApiException

Ecng.Backup.Mega.Native

Exception thrown when MEGA API returns an error code.

继承自: InvalidOperationException

构造函数

MegaApiException
public MegaApiException(int code)
megaApiException = MegaApiException(code)

Initializes a new instance of MegaApiException.

code
Raw MEGA API error code.

属性

Code
public int Code { get; }
value = megaApiException.Code

Raw MEGA API error code.

ErrorCode
public MegaErrorCode ErrorCode { get; }
value = megaApiException.ErrorCode

Parsed error code if it is a known MegaErrorCode value; otherwise Unknown.