Struct UnityWebRequestError
- Namespace
- TAssetBundle
- Assembly
- TAssetBundle.dll
Unified error information extracted from UnityWebRequest. This struct is used to normalize network and HTTP errors across different Unity versions.
public struct UnityWebRequestError
- Inherited Members
Fields
Success
Predefined success result.
public static readonly UnityWebRequestError Success
Field Value
errorType
Error type classification.
public EUnityWebRequestErrorResult errorType
Field Value
message
Error message provided by UnityWebRequest.
public string message
Field Value
responseCode
HTTP response code. Can be 0 for cached or local file requests.
public long responseCode
Field Value
url
Requested URL.
public string url
Field Value
Properties
IsSuccess
Returns true if the request is considered successful.
- Network, HTTP, or Exception errors are treated as failures.
- responseCode == 0 is treated as success (cached files, local files, or platform-specific cases).
- Standard HTTP success range: 2xx.
public bool IsSuccess { get; }
Property Value
isHttpError
Indicates an HTTP protocol error (4xx, 5xx responses). Maintained for backward compatibility.
public bool isHttpError { get; }
Property Value
isNetworkError
Indicates a low-level network error (connection failure, timeout, DNS error, etc). Maintained for backward compatibility.
public bool isNetworkError { get; }