Ejemplo n.º 1
0
        public static ErrMessage GetMessage(PEExceptionType exceptionType)
        {
            Hashtable hashtable = GetResource(ResourceManagerType.ErrorMessage, "zh-CHS", "Messages.xml", false);

            if (hashtable[(int)exceptionType] == null)
            {
                throw new CustomException(PEExceptionType.ResourceNotFound, "文件 Messages.xml 中未找到: " + exceptionType);
            }
            return((ErrMessage)hashtable[(int)exceptionType]);
        }
Ejemplo n.º 2
0
 public CustomException(PEExceptionType exceptionType, string message, Exception inner) : base(message, inner)
 {
     this.m_UserAgent        = string.Empty;
     this.m_IpAddress        = string.Empty;
     this.m_HttpReferrer     = string.Empty;
     this.m_HttpVerb         = string.Empty;
     this.m_HttpPathAndQuery = string.Empty;
     this.m_StackTrace       = string.Empty;
     this.Init();
     this.m_ExceptionType = exceptionType;
 }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int num = DataConverter.CLng(base.Request.QueryString["MessageID"]);

            if (num == 0)
            {
                num = 0x3e7;
            }
            PEExceptionType exceptionType = (PEExceptionType)num;
            ErrMessage      message       = ResourceManager.GetMessage(exceptionType);

            this.LtrTitle.Text            = message.Title;
            this.LnkErrorMessage.Text     = message.Body;
            this.LnkReturnUrl.NavigateUrl = "javascript:history.back();";
        }