Material Clustering Benchmark
Diagnostics Class Reference

Static Public Member Functions

static void Assert (bool val, string message)
 If val is false, throws a System.Exception with the message . More...
 
static void Assert (bool val, System.Exception exception)
 If val is false, throws exception . More...
 
static void Throw (string message)
 
static void Throw (System.Exception exception)
 

Detailed Description

Definition at line 1 of file Diagnostics.cs.

Member Function Documentation

◆ Assert() [1/2]

static void Diagnostics.Assert ( bool  val,
string  message 
)
inlinestatic

If val is false, throws a System.Exception with the message .

Parameters
valChecks if this value is true.
messageMessage for the thrown exception.

Definition at line 8 of file Diagnostics.cs.

◆ Assert() [2/2]

static void Diagnostics.Assert ( bool  val,
System.Exception  exception 
)
inlinestatic

If val is false, throws exception .

Parameters
valChecks if this value is true.
exceptionException to throw.

Definition at line 21 of file Diagnostics.cs.

◆ Throw() [1/2]

static void Diagnostics.Throw ( string  message)
inlinestatic

Definition at line 40 of file Diagnostics.cs.

◆ Throw() [2/2]

static void Diagnostics.Throw ( System.Exception  exception)
inlinestatic

Definition at line 29 of file Diagnostics.cs.


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