| | | 1 | | namespace 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> |
| | | 10 | | public 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> |
| | 1 | 16 | | public NexMediatorException(string message) : base(message) |
| | 1 | 17 | | { |
| | 1 | 18 | | } |
| | | 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> |
| | 1 | 26 | | public NexMediatorException(string message, Exception innerException) : base(message, innerException) |
| | 1 | 27 | | { |
| | 1 | 28 | | } |
| | | 29 | | } |