Example #1
0
        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);
        }
Example #2
0
        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);
        }