Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Exception
    CustomMessageException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.ToString()
    Exception.GetType()
    Exception.TargetSite
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.StackTrace
    Exception.SerializeObjectState
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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

    Implements

    ISerializable

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    MiscExtensions.ToFullExceptionMessage(Exception?, bool)
    MiscExtensions.ToFullStackTrace(Exception)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.