DHI.Mike1D
DHI.Mike1D
Namespaces
DHI.Mike1D.Generic
GenericExtensions Class
GenericExtensions Methods
BinarySearch Method
ChainageAsDiagnosticsValue Method
CopyTo Method
CopyToFloatArray Method
Error Method
ExceptionToError Method
ExceptionToString Method
FirstInMonth Method
GetValue Method
IndexOf Method
LargestMultipleOf Method
Min Method
Multiply Method
RuntimeError Method
Set Method
Sort Method
SortStable Method
Swap(T) Method
Warning Method
GenericExtensions
ExceptionToError Method
Add an error DiagnosticItem, and throw an exception
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
Copy
public
static
void
ExceptionToError
(
this
IDiagnostics
diagnostics
,
Exception
e
)
Parameters
diagnostics
Type:
DHI.Mike1D.Generic
IDiagnostics
e
Type:
System
Exception
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDiagnostics
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
GenericExtensions Class
DHI.Mike1D.Generic Namespace