Subversion Repository Public Repository

insightly-api

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
´╗┐using System;
using System.Runtime.Serialization;

namespace TS.Insightly.API.Exception
{
    /// <summary>
    /// General exception from the HTTP response.
    /// </summary>
    [Serializable]
    public class ResponseException : System.Exception
    {
        /// <summary>
        /// Gets the inner exception from the HTTP sub-system.
        /// </summary>
        /// <value>
        /// The detailed exception.
        /// </value>
        public System.Exception DetailException { get { return InnerException; }}

        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="inner">The original response exception.</param>
        public ResponseException(string message, System.Exception inner) : base(message, inner)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseException"/> class.
        /// </summary>
        /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
        /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
        protected ResponseException(
            SerializationInfo info,
            StreamingContext context) : base(info, context)
        {
        }
    }
}

Commits for insightly-api/trunk/Insightly/Exception/ResponseException.cs

Diff revisions: vs.
Revision Author Commited Message
9 Diff Diff HadleyHope picture HadleyHope Tue 24 Sep, 2013 10:12:34 +0000

Added AddNewContactIfNotExists that checks for existing email, first and last names before adding a contact.

4 Diff Diff HadleyHope picture HadleyHope Fri 20 Sep, 2013 15:08:23 +0000

Added code and tests to add a basic contact with email address.

3 HadleyHope picture HadleyHope Thu 19 Sep, 2013 14:44:24 +0000

Initial working API retrieving a contact by it’s id and email address.