< Summary

Information
Class: NexMediator.Abstractions.Exceptions.NexMediatorException
Assembly: NexMediator.Abstractions
File(s): /home/runner/work/NexMediator/NexMediator/src/NexMediator.Abstractions/Exceptions/NexMediatorException.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/NexMediator/NexMediator/src/NexMediator.Abstractions/Exceptions/NexMediatorException.cs

#LineLine coverage
 1namespace NexMediator.Abstractions.Exceptions;
 2
 3/// <summary>
 4/// Represents errors that occur during mediator operations
 5/// </summary>
 6/// <remarks>
 7/// This exception is thrown when there are issues with mediator operations such as
 8/// missing handlers, invalid pipeline configurations, or other mediator-specific errors.
 9/// </remarks>
 10public class NexMediatorException : Exception
 11{
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="NexMediatorException"/> class with a specified error message
 14    /// </summary>
 15    /// <param name="message">The message that describes the error</param>
 116    public NexMediatorException(string message) : base(message)
 117    {
 118    }
 19
 20    /// <summary>
 21    /// Initializes a new instance of the <see cref="NexMediatorException"/> class with a specified error message
 22    /// and a reference to the inner exception that is the cause of this exception
 23    /// </summary>
 24    /// <param name="message">The message that describes the error</param>
 25    /// <param name="innerException">The exception that is the cause of the current exception</param>
 126    public NexMediatorException(string message, Exception innerException) : base(message, innerException)
 127    {
 128    }
 29}