Module utils/ErrorUtils
Functions
throwIf
- throwIf(guard: boolean, message: string): guard
-
Parameters
-
guard: boolean
-
message: string
Returns guard
throwIfUndefined
- throwIfUndefined<T>(object: T | undefined, message: string): object
-
Type parameters
Parameters
-
object: T | undefined
-
message: string
Returns object
Throws an Error if the guard is true.