|
Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
Throws an exception of type TException if condition is not true.
This can be useful for checking that the arguments passed to a function are valid and if not aborting.
Note that an exception will be thrown every time that this method is called and condition evaluates to false. This is in contrast to some of the other Guard methods that only log an error once per session.
| condition | Condition you expect to be true. |
| exceptionArguments | Optional arguments to pass to the TException constructor when an exception is thrown. |
Most exception constructors accept a string argument specifying the message to be logged to the Console. For ArgumentNullException on the other hand a single string argument specifies the name of the parameter that was null.
| TException | : | Exception | |
| TException | : | new() |