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