Class SteamCallResultException
Thrown when a Steam async call fails to start, is already being awaited, or completes without a usable result, including an IO failure.
Implements
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
public class SteamCallResultException : Exception, ISerializable
Constructors
SteamCallResultException(string)
Creates a call result exception with a message describing the failed call.
Declaration
public SteamCallResultException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Describes which call failed and how. |
SteamCallResultException(string, SteamAPICall_t, ESteamAPICallFailure)
Creates the exception for a specific call and the failure reason that the Steamworks API reported for it.
Declaration
public SteamCallResultException(string message, SteamAPICall_t callHandle, ESteamAPICallFailure failureReason)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Describes which call failed and how. |
| SteamAPICall_t | callHandle | The handle of the failed call. |
| ESteamAPICallFailure | failureReason | The reason that the Steamworks API reported for the failure. |
Properties
CallHandle
The handle of the failed call, or Invalid when the call did not start.
Declaration
public SteamAPICall_t CallHandle { get; }
Property Value
| Type | Description |
|---|---|
| SteamAPICall_t |
FailureReason
The reason for the call failure.
Declaration
public ESteamAPICallFailure FailureReason { get; }
Property Value
| Type | Description |
|---|---|
| ESteamAPICallFailure |
Remarks
ISteamUtils::GetAPICallFailureReason reports this value. When no failure reason is available, the value is k_ESteamAPICallFailureNone.