public DomainModelResponse(ResponseCategory responseCategory, string propertyName, string message, string stackTrace = "", object onObject = null)
     : this()
 {
     if (responseCategory == ResponseCategory.Error)
         _hasError = true;
     _responseMessages.Add(new ResponseMessage(responseCategory, propertyName, message, stackTrace, onObject));
 }
 public ResponseMessage(ResponseCategory responseCategory, string propertyName, string message, object onObject)
 {
     _responseCategory = responseCategory;
     _propertyName = propertyName;
     _message = message;
     _onObject = onObject;
     _suggestedCode = HttpStatusCode.Unused;
 }
 public ResponseMessage(ResponseCategory responseCategory, string propertyName, string message, object onObject)
 {
     _responseCategory = responseCategory;
     _propertyName     = propertyName;
     _message          = message;
     _onObject         = onObject;
     _suggestedCode    = HttpStatusCode.Unused;
 }
 public DomainModelResponse(ResponseCategory responseCategory, string propertyName, string message, string stackTrace = "", object onObject = null)
     : this()
 {
     if (responseCategory == ResponseCategory.Error)
     {
         _hasError = true;
     }
     _responseMessages.Add(new ResponseMessage(responseCategory, propertyName, message, stackTrace, onObject));
 }
 public ResponseMessage(ResponseCategory responseCategory, string propertyName, string message, string stackTrace)
 {
     _responseCategory = responseCategory;
     _propertyName = propertyName;
     _message = message;
     _onObject = null;
     _stackTrace = stackTrace;
     _suggestedCode = HttpStatusCode.Unused;
 }
 public ResponseMessage(ResponseCategory responseCategory, string propertyName, string message, string stackTrace)
 {
     _responseCategory = responseCategory;
     _propertyName     = propertyName;
     _message          = message;
     _onObject         = null;
     _stackTrace       = stackTrace;
     _suggestedCode    = HttpStatusCode.Unused;
 }
 public ResponseMessage(ResponseCategory responseCategory, string propertyName, string message, string stackTrace, object onObject, HttpStatusCode? suggestedCode)
 {
     _responseCategory = responseCategory;
     _propertyName = propertyName;
     _message = message;
     _stackTrace = stackTrace;
     _onObject = onObject;
     if (suggestedCode.HasValue)
         _suggestedCode = (HttpStatusCode)suggestedCode;
 }
 public ResponseMessage(ResponseCategory responseCategory, string propertyName, string message, string stackTrace, object onObject, HttpStatusCode?suggestedCode)
 {
     _responseCategory = responseCategory;
     _propertyName     = propertyName;
     _message          = message;
     _stackTrace       = stackTrace;
     _onObject         = onObject;
     if (suggestedCode.HasValue)
     {
         _suggestedCode = (HttpStatusCode)suggestedCode;
     }
 }