‪GamecraftModdingAPI  ‪v1.8.0
‪The unofficial Gamecraft modding API
GamecraftModdingAPI.Utility.ExceptionUtil Class Reference

Static Public Member Functions

static void InvokeEvent< T > (EventHandler< T > handler, object sender, T args)
 ‪Invokes an event in a try-catch block to avoid propagating exceptions. More...
 

Member Function Documentation

◆ InvokeEvent< T >()

static void GamecraftModdingAPI.Utility.ExceptionUtil.InvokeEvent< T > ( EventHandler< T >  handler,
object  sender,
args 
)
inlinestatic

‪Invokes an event in a try-catch block to avoid propagating exceptions.

Parameters
handler‪The event to emit, can be null
sender‪Event sender
args‪Event arguments
Template Parameters
T‪Type of the event arguments

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