private static string DeriveMessage(OneDriveErrorCode errorCode, string cloudObjectName) {//TODO: derive it to message + cloudobjectname; switch (errorCode) { case OneDriveErrorCode.UnknownError: default: return(cloudObjectName); } }
private static string DeriveMessage(OneDriveErrorCode errorCode, string cloudObjectName) { //TODO: derive it to message + cloudobjectname; switch (errorCode) { case OneDriveErrorCode.UnknownError: default: return cloudObjectName; } }
public bool IsMatch(OneDriveErrorCode errorCode) { return(IsMatch(errorCode.ToString())); }
public static bool IsMatchCode(this OneDriveException ex, OneDriveErrorCode code) { return(ex.IsMatch(code.ToString())); }
public OneDriveOutOfSyncException(string cloudObjectName, OneDriveErrorCode errorCode = OneDriveErrorCode.UnknownError) : base(DeriveMessage(errorCode, cloudObjectName)) { ErrorCode = errorCode; }
public OneDriveOutOfSyncException(string cloudObjectName, OneDriveErrorCode errorCode = OneDriveErrorCode.UnknownError) : base(DeriveMessage(errorCode, cloudObjectName)) { ErrorCode = errorCode; }