// // 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 an update fails due to conflicting states /// #if !PCL [Serializable] #endif public class DataConflictException : DataStorageException { /// /// Constructs a new DataConflictException with the specified message and an existing exception object /// public DataConflictException(string detailMessage, Exception ex) : base(detailMessage, ex) { } /// /// Constructs a new DataConflictException with the specified message /// public DataConflictException(string detailMessage) : base(detailMessage) { } /// /// Constructs a new DataConflictException with an existing exception object /// public DataConflictException(Exception ex) : base(ex.Message, ex) { } #if !PCL /// /// Constructs a new instance of the DataConflictException 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 DataConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }