示例#1
0
        /// <summary>
        /// エラー情報を返す
        /// </summary>
        protected override ResultCode DoError(UnityWebRequest source)
        {
            if (source == null)
            {
                return(ChipstarResult.ClientError($"Create Network Request Error:{Location?.FullPath ?? string.Empty}"));
            }
            if (source.isNetworkError)
            {
                return(ChipstarResult.NetworkError(Location, source.responseCode, source.error));
            }

            if (source.isHttpError)
            {
                return(ChipstarResult.HttpError(Location, source.responseCode, source.error));
            }
            if (m_option.IsError)
            {
                return(m_option.GetResultCode(this));
            }
            return(ChipstarResult.ClientError(source.error));
        }
示例#2
0
 protected override ResultCode DoGetResultCode(ILoadJob job)
 {
     return(m_trigger.GetResultCode(job));
 }