public iTripNullException(iTripExceptionCode code) : base(code.ToString()) { base.HResult = (int)code; }
/// <summary> /// 根据异常编码生成结果(当编码值小于Error_UnKnown(即9999)时,为正确,否则为错误) /// </summary> /// <param name="code">异常编码</param> /// <returns></returns> public virtual StandardResult Result(iTripExceptionCode code) { return(new StandardResult(code < iTripExceptionCode.Error_UnKnown, code.ToString())); }
/// <summary> /// 根据异常编码生成结果(当编码值小于Error_UnKnown(即9999)时,为正确,否则为错误) /// </summary> /// <param name="code">异常编码</param> /// <returns></returns> public virtual StandardResult Result(iTripExceptionCode code) { return new StandardResult(code < iTripExceptionCode.Error_UnKnown, code.ToString()); }