

insightly-api
@ 9
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 Contact actions. /// </summary> public class ContactException : System.Exception { /// <summary> /// Gets or sets the original contact. /// </summary> /// <value> /// The original contact. /// </value> public Contact OriginalContact { 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="ContactException"/> class. /// </summary> /// <param name="originalContact">The contact the operation was being carried out on.</param> /// <param name="message">The message.</param> /// <param name="inner">The original response exception.</param> public ContactException(Contact originalContact, string message, System.Exception inner) : base(message, inner) { OriginalContact = originalContact; } } } |
Commits for insightly-api/trunk/Insightly/Exception/ContactException.cs
Revision | Author | Commited | Message |
---|---|---|---|
9
![]() |
|
Tue 24 Sep, 2013 10:12:34 +0000 | Added AddNewContactIfNotExists that checks for existing email, first and last names before adding a contact. |
4 |
|
Fri 20 Sep, 2013 15:08:23 +0000 | Added code and tests to add a basic contact with email address. |