コード例 #1
0
ファイル: TopSchemaException.cs プロジェクト: xrogzu/TopSDK
        public TopSchemaException(TopSchemaErrorCodeEnum codeEnum, string fieldId)
            : base(TopSchemaErrorCodeEnumHelper.ToMessage(codeEnum))
        {
            string msg = TopSchemaErrorCodeEnumHelper.ToMessage(codeEnum);

            if (!string.IsNullOrEmpty(fieldId))
            {
                msg += "At the filed which id is " + fieldId;
            }
            this.ErrorCode = TopSchemaErrorCodeEnumHelper.ToErrorCode(codeEnum);
            this.ErrorMsg  = msg;
            this.FieldId   = fieldId;
        }
コード例 #2
0
ファイル: TopSchemaException.cs プロジェクト: xrogzu/TopSDK
 public TopSchemaException(string message, Exception cause)
     : base(message, cause)
 {
     this.ErrorCode = TopSchemaErrorCodeEnumHelper.ToErrorCode(TopSchemaErrorCodeEnum.ERROR_CODE_40000);
     this.ErrorMsg  = message;
 }