Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="Chinchilla Software Limited">
4 : // // Copyright Chinchilla Software Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 :
11 : namespace Cqrs.Azure.DocumentDb
12 : {
13 : /// <summary>
14 : /// A non-fault tolerant <see cref="Exception"/> while interacting with DocumentDB.
15 : /// </summary>
16 : [Serializable]
17 : public class DocumentDbException : Exception
18 1 : {
19 : /// <summary>
20 : /// Instantiate a new instance of <see cref="DocumentDbException"/> with a specified error message and a reference to the inner <paramref name="exception"/> that is the cause of this <see cref="Exception"/>.
21 : /// </summary>
22 : /// <param name="message">The error message that explains the reason for the exception.</param>
23 : /// <param name="exception">The <see cref="Exception"/> that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner <see cref="Exception"/> is specified.</param>
24 1 : public DocumentDbException(string message, Exception exception)
25 : : base(message, exception)
26 : {
27 : }
28 :
29 : /// <summary>
30 : /// Instantiate a new instance of <see cref="DocumentDbException"/> with a reference to the inner <paramref name="exception"/> that is the cause of this <see cref="Exception"/>.
31 : /// </summary>
32 : /// <param name="exception">The <see cref="Exception"/> that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner <see cref="Exception"/> is specified.</param>
33 1 : public DocumentDbException(Exception exception)
34 : : this("Non-fault tolerant exception raised.", exception)
35 : {
36 : }
37 : }
38 : }
|