// // Copyright 2014-2015 Amazon.com, // Inc. or its affiliates. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // using System; using Amazon.Runtime; namespace Amazon.CognitoSync.SyncManager { /// /// This exception is thrown when an error occurs during an data storage /// operation. /// #if !PCL [Serializable] #endif public class SyncManagerException : AmazonServiceException { /// /// Constructs a new SyncManagerException with the specified message and an existing exception object /// public SyncManagerException(string detailMessage, Exception ex) : base(detailMessage, ex) { } /// /// Constructs a new SyncManagerException with the specified message /// public SyncManagerException(string detailMessage) : base(detailMessage) { } /// /// Constructs a new SyncManagerException with an existing exception object /// public SyncManagerException(Exception ex) : base(ex.Message, ex) { } #if !PCL /// /// Constructs a new instance of the AmazonClientException 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 SyncManagerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }