| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | #nullable enable |
| | 4 | |
|
| | 5 | | namespace Ice; |
| | 6 | |
|
| | 7 | | /// <summary> |
| | 8 | | /// Base class for all Ice exceptions. |
| | 9 | | /// </summary> |
| | 10 | | public abstract class Exception : System.Exception |
| | 11 | | { |
| | 12 | | /// <summary> |
| | 13 | | /// Returns the type ID of this exception. |
| | 14 | | /// </summary> |
| | 15 | | /// <returns>The type ID of this exception.</returns> |
| | 16 | | public abstract string ice_id(); |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the <see cref="Exception" /> class. |
| | 20 | | /// </summary> |
| | 21 | | /// <param name="message">The exception message.</param> |
| | 22 | | /// <param name="innerException">The inner exception.</param> |
| | 23 | | protected Exception(string? message, System.Exception? innerException = null) |
| 1 | 24 | | : base(message, innerException) |
| | 25 | | { |
| 1 | 26 | | } |
| | 27 | | } |