文档

Unity Engine

Unity Engine

error

A human-readable string describing any system errors encountered by this UnityWebRequest object while handling HTTP requests or responses. The default value is null. (Read Only)
阅读时间1 分钟最后更新于 20 天前

Definition

public string error { get; }

Remarks

If the UnityWebRequest has not encountered a system error, this property will return
null
. Examples of system errors include socket errors, errors resolving DNS entries, or the redirect limit being exceeded.
Note: If the UnityWebRequest is complete and the response isn't successful, the error property will be non-empty.
Additional Resources: UnityWebRequest.responseCode