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
41
42
43
´╗┐using TS.Insightly.API.Contract;

namespace TS.Insightly.API.Exception
{
    /// <summary>
    /// Exception for Organisation actions.
    /// </summary>
    public class OrganisationException : System.Exception
    {
        /// <summary>
        /// Gets or sets the original organisation.
        /// </summary>
        /// <value>
        /// The original organisation.
        /// </value>
        public Organisation OriginalOrganisation { get; set; }

        /// <summary>
        /// Gets the detail exception.
        /// </summary>
        /// <value>
        /// The detail exception.
        /// </value>
        public System.Exception DetailException 
        {
            get
            {
                return InnerException ?? this;
            } 
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="OrganisationException"/> class.
        /// </summary>
        /// <param name="originalOrganisation">The organisation the operation was being carried out on.</param>
        /// <param name="message">The message.</param>
        /// <param name="inner">The original response exception.</param>
        public OrganisationException(Organisation originalOrganisation, string message, System.Exception inner) : base(message, inner)
        {
            OriginalOrganisation = originalOrganisation;
        }
    }
}

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

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

Added basic organisation functionality, at the moment cannot link organisation to contact.

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 HadleyHope picture HadleyHope Fri 20 Sep, 2013 15:08:23 +0000

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