Пример #1
0
 public RenderingObjectModelException(ProcessingErrorCode errCode)
     : base(ErrorCode.rrRenderingError, RPRes.Keys.GetString(errCode.ToString()), null, Global.RenderingTracer, null)
 {
     this.m_processingErrorCode = errCode;
 }
Пример #2
0
 public RenderingObjectModelException(ProcessingErrorCode errCode, params object[] arguments)
     : base(ErrorCode.rrRenderingError, string.Format(CultureInfo.CurrentCulture, RPRes.Keys.GetString(errCode.ToString()), arguments), null, Global.RenderingTracer, null)
 {
     this.m_processingErrorCode = errCode;
 }
Пример #3
0
        internal static ProcessingMessage CreateProcessingMessage(ProcessingErrorCode code, Severity severity, ObjectType objectType, string objectName, string propertyName, ProcessingMessageList innerMessages, params string[] arguments)
        {
            objectName   = objectName.MarkAsPrivate();
            propertyName = propertyName.MarkAsPrivate();
            object[] messageArgs = GetMessageArgs(objectType, objectName, propertyName, arguments);
            string   message     = string.Format(CultureInfo.CurrentCulture, RPRes.Keys.GetString(code.ToString()), messageArgs);

            return(new ProcessingMessage(code, severity, objectType, objectName, propertyName, message, innerMessages));
        }