protected void SetErrorMessage(BaseValidator validator, N2.Integrity.DestinationOnOrBelowItselfException ex) { logger.Debug(ex); string message = string.Format(GetLocalResourceString("DestinationOnOrBelowItselfExceptionFormat", "Cannot move an item to a destination onto or below itself"), ex.SourceItem.Name, ex.DestinationItem.Name); SetErrorMessage(validator, message); }
protected void SetErrorMessage(BaseValidator validator, N2.Integrity.DestinationOnOrBelowItselfException ex) { Trace.Write(ex.ToString()); string message = string.Format(GetLocalResourceString("DestinationOnOrBelowItselfExceptionFormat"), ex.SourceItem.Name, ex.DestinationItem.Name); SetErrorMessage(validator, message); }