Class CustomMessageException
A marker for throwing exceptions that contain very simple error messages for low/no code users. Throw these in code snippets to give a user clearer error messages. Use optional notes to help.
Implements
Inherited Members
Namespace: LemonEdge.Utils
Assembly: LemonEdge.Utils.dll
Syntax
public class CustomMessageException : Exception, ISerializable
Constructors
CustomMessageException(string, string?, Exception?)
Creates a new CustomMessageException.
Declaration
public CustomMessageException(string message, string? notes = null, Exception? innerException = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message |
string | notes | Any notes for the end user |
Exception | innerException | The inner exception |
Properties
Notes
Any notes about the error to help the user.
Declaration
public string? Notes { get; }
Property Value
Type | Description |
---|---|
string |