//
// Copyright 2014-2015 Amazon.com,
// Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
using System;
namespace Amazon.CognitoSync.SyncManager
{
///
/// This exception is thrown when the dataset operation exceeds certain limit,
/// e.g. maximum of 20 datasets per identity, 1024 records per dataset, and 1mb
/// in size per dataset, etc.
///
#if !PCL
[Serializable]
#endif
public class DataLimitExceededException : DataStorageException
{
///
/// Constructs a new DataLimitExceedException with the specified message and an existing exception object
///
public DataLimitExceededException(string detailMessage, Exception ex)
: base(detailMessage, ex)
{
}
///
/// Constructs a new DataLimitExceedException with the specified message
///
public DataLimitExceededException(string detailMessage)
: base(detailMessage)
{
}
///
/// Constructs a new DataLimitExceedException using an existing exception object
///
public DataLimitExceededException(Exception ex)
: base(ex.Message, ex)
{
}
#if !PCL
///
/// Constructs a new instance of the DataLimitExceededException class with serialized data.
///
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
/// The parameter is null.
/// The class name is null or is zero (0).
protected DataLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
}