public GlobalXApiTokenRequestLockTimeoutException(GlobalXApiTokenLockInfo currentLock, string userId) : base($"Request to lock API token timed out. " + $"User: '******', " + $"existing lock ID: '{currentLock?.LockId}', " + $"expiring at '{currentLock?.ExpiresAt.ToString("g", CultureInfo.InvariantCulture)}'.") { CurrentLock = currentLock; UserId = userId; }
public GlobalXApiTokenLockIdMismatchException( GlobalXApiTokenLockInfo existingLock, GlobalXApiTokenLockInfo lockInfoSuppliedWithRequest, GlobalXApiToken globalXApiToken) : base($"An attempt was made to update GlobalXApiToken for user '{globalXApiToken?.UserId}'," + $" however the lock ID supplied was '{lockInfoSuppliedWithRequest?.LockId}'" + $" which doesn't match the existing lock of '{existingLock?.LockId}'.") { ExistingLock = existingLock; LockInfo = lockInfoSuppliedWithRequest; GlobalXApiToken = globalXApiToken; }