Exception handlers.
More...
|
| static void | Handle (string message, Exception ex) |
| | Handle an exception by invoking the OnException event. More...
|
| |
◆ ExceptionHandler()
| delegate void KS.Reactor.ksExceptionHandler.ExceptionHandler |
( |
string |
message, |
|
|
Exception |
ex |
|
) |
| |
Exception handler.
- Parameters
-
| message | Message. |
| ex | Exception. |
◆ Handle()
| static void KS.Reactor.ksExceptionHandler.Handle |
( |
string |
message, |
|
|
Exception |
ex |
|
) |
| |
|
static |
Handle an exception by invoking the OnException event.
Logs the exception if no event handlers are registered. Marks the exception as handled by adding a KSReactor object to the exception data if rethrowing is enabled.
- Parameters
-
| message | Message. |
| ex | Exceptions. |
◆ RethrowExceptions
| bool KS.Reactor.ksExceptionHandler.RethrowExceptions = false |
|
static |
By default don't rethrow exceptions in Unity
◆ OnException
Invoked when a exception is caught in developer code.