Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AdoptersException"/> class.
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="code">The code.</param>
 public AdoptersException(string target, AdopterExceptionCode code) : base(ExceptionMessages.GetMessage(code))
 {
     this.Target = target;
     this.Code   = code;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AdoptersException"/> class.
 /// </summary>
 /// <param name="code">The code.</param>
 public AdoptersException(AdopterExceptionCode code) : base(ExceptionMessages.GetMessage(code))
 {
     this.Code = code;
 }