| | 1 | | // Copyright (c) Microsoft. All rights reserved. |
| | 2 | | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| | 3 | |
|
| | 4 | | namespace Microsoft.Azure.EventHubs.Processor |
| | 5 | | { |
| | 6 | | using System; |
| | 7 | |
|
| | 8 | | /// <summary> |
| | 9 | | /// An exception thrown during event processing. |
| | 10 | | /// </summary> |
| | 11 | | public class EventProcessorRuntimeException : EventHubsException |
| | 12 | | { |
| | 13 | | internal EventProcessorRuntimeException(string message, string action) |
| 0 | 14 | | : this(message, action, null) |
| | 15 | | { |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | internal EventProcessorRuntimeException(string message, string action, Exception innerException) |
| 0 | 19 | | : base(true, message, innerException, ErrorSourceType.UserError) |
| | 20 | | { |
| 0 | 21 | | this.Action = action; |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Gets the action that was being performed when the exception occured. |
| | 26 | | /// </summary> |
| 0 | 27 | | public string Action { get; } |
| | 28 | | } |
| | 29 | | } |