/// <summary>
 /// Gets a string representation of the exception
 /// </summary>
 /// <param name="failure">The object containing details of the failure</param>
 /// <param name="correlationID">The ID of the failed request</param>
 /// <returns>A string containing the details of the exception</returns>
 private static string GetMessage(AttributeRepresentationFailure failure, string correlationID)
 {
     return(string.Format(
                AttributeRepresentationFailureException.messageFormat,
                failure.FailureMessage,
                failure.AttributeType,
                failure.AttributeValue,
                failure.AttributeFailureCode,
                failure.AdditionalTextDetails, correlationID));
 }
 /// <summary>
 /// Initializes a new instance of the AttributeRepresentationFailureException class
 /// </summary>
 /// <param name="failure">The object containing the details of the failure</param>
 /// <param name="correlationID">The ID of the failed request </param>
 public AttributeRepresentationFailureException(AttributeRepresentationFailure failure, string correlationID)
     : base(AttributeRepresentationFailureException.GetMessage(failure, correlationID), correlationID)
 {
     this.failure = failure;
 }