| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Diagnostics.CodeAnalysis; |
| | | 6 | | |
| | | 7 | | namespace Azure.Messaging.EventHubs |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// Serves an marker for an exception occurring within developer-provided code, such as |
| | | 11 | | /// event handlers. Such exceptions are typically intended to be explicitly not handled by |
| | | 12 | | /// the infrastructure of the various Event Hubs types. |
| | | 13 | | /// </summary> |
| | | 14 | | /// |
| | | 15 | | /// <seealso cref="System.Exception" /> |
| | | 16 | | /// |
| | | 17 | | [SuppressMessage("Design", "CA1064:Exceptions should be public", Justification = "This exception is not visible to u |
| | | 18 | | internal class DeveloperCodeException : Exception |
| | | 19 | | { |
| | | 20 | | /// <summary> |
| | | 21 | | /// Initializes a new instance of the <see cref="DeveloperCodeException"/> class. |
| | | 22 | | /// </summary> |
| | | 23 | | /// |
| | | 24 | | /// <param name="innerException">The exception that is the cause of the current exception, or a null reference i |
| | | 25 | | /// |
| | 8 | 26 | | public DeveloperCodeException(Exception innerException) : base(Resources.DeveloperCodeError, innerException) |
| | | 27 | | { |
| | 8 | 28 | | } |
| | | 29 | | } |
| | | 30 | | } |