Class AssertException
Thrown by Assert(bool, string) to signal logic failures.
Namespace: Neon.Diagnostics
Assembly: Neon.Common.dll
Syntax
public class AssertException : Exception
Constructors
AssertException()
Default constructor.
Declaration
public AssertException()
AssertException(string, Exception)
Constructs an assertion with a specific message and optional inner exception.
Declaration
public AssertException(string message, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The custom message. |
Exception | innerException | Optional inner exception. |