コンテンツにスキップ

OpenVRExceptionHelper クラス

Provides extension methods that translate OpenVR error values into typed exceptions.

名前空間: FloatSoda.OVR.Exceptions
アセンブリ: FloatSoda.OVR.dll

public static class OpenVRExceptionHelper

object ← OpenVRExceptionHelper

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Throws when error is an application error.

public static void ThrowIfError(this EVRApplicationError error)

error EVRApplicationError

Throws when error is an initialization error.

public static void ThrowIfError(this EVRInitError error)

error EVRInitError

Throws when error is an input error.

public static void ThrowIfError(this EVRInputError error)

error EVRInputError

Throws when error is an overlay error.

public static void ThrowIfError(this EVROverlayError error)

error EVROverlayError

Throws when error is a compositor error.

public static void ThrowIfError(this EVRCompositorError error)

error EVRCompositorError

Throws when error is a settings error.

public static void ThrowIfError(this EVRSettingsError error)

error EVRSettingsError

Throws when error is a notification error.

public static void ThrowIfError(this EVRNotificationError error)

error EVRNotificationError

Throws when error is a tracked-property error.

public static void ThrowIfError(this ETrackedPropertyError error)

error ETrackedPropertyError

Throws when error is a screenshot error.

public static void ThrowIfError(this EVRScreenshotError error)

error EVRScreenshotError

Throws when error is a render-model error.

public static void ThrowIfError(this EVRRenderModelError error)

error EVRRenderModelError

Throws when handle is OpenVR’s invalid overlay handle.

public static void ThrowIfInvalidHandle(this ulong handle)

handle ulong