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