Photon .NET Client API

Public Member Functions | Public Attributes | List of all members
Photon.Realtime.ErrorInfo Class Reference

Class wrapping the received EventCode.ErrorInfo event. More...

Public Member Functions

 ErrorInfo (EventData eventData)
override string ToString ()

Public Attributes

readonly string Info
 String containing information about the error. More...

Detailed Description

Class wrapping the received EventCode.ErrorInfo event.

This is passed inside IErrorInfoCallback.OnErrorInfo callback. If you implement IOnEventCallback.OnEvent or LoadBalancingClient.EventReceived you will also get EventCode.ErrorInfo but not parsed.

In most cases this could be either:

  1. an error from webhooks plugin (if HasErrorInfo is enabled), read more here:
  2. an error sent from a custom server plugin via PluginHost.BroadcastErrorInfoEvent, see example here:
  3. an error sent from the server, for example, when the limit of cached events has been exceeded in the room (all clients will be disconnected and the room will be closed in this case) read more here:

Constructor & Destructor Documentation

◆ ErrorInfo()

Photon.Realtime.ErrorInfo.ErrorInfo ( EventData  eventData)

Member Function Documentation

◆ ToString()

override string Photon.Realtime.ErrorInfo.ToString ( )

Member Data Documentation

◆ Info

readonly string Photon.Realtime.ErrorInfo.Info

String containing information about the error.

The documentation for this class was generated from the following file: