| | | 1 | | // author: https://github.com/pabloFuente |
| | | 2 | | |
| | | 3 | | using System; |
| | | 4 | | |
| | | 5 | | namespace LiveKit.Rtc |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// Exception thrown for room-related errors. |
| | | 9 | | /// </summary> |
| | | 10 | | public class RoomException : Exception |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Creates a new RoomException with the specified message. |
| | | 14 | | /// </summary> |
| | | 15 | | /// <param name="message">The error message.</param> |
| | | 16 | | public RoomException(string message) |
| | 12 | 17 | | : base(message) { } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Creates a new RoomException with the specified message and inner exception. |
| | | 21 | | /// </summary> |
| | | 22 | | /// <param name="message">The error message.</param> |
| | | 23 | | /// <param name="innerException">The inner exception.</param> |
| | | 24 | | public RoomException(string message, Exception innerException) |
| | 0 | 25 | | : base(message, innerException) { } |
| | | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Reserved for track errors. This version of the SDK does not throw it: a failed native request |
| | | 30 | | /// raises <see cref="InvalidOperationException"/>, and errors reported by the server raise |
| | | 31 | | /// <see cref="RoomException"/>. |
| | | 32 | | /// </summary> |
| | | 33 | | public class TrackException : Exception |
| | | 34 | | { |
| | | 35 | | /// <summary> |
| | | 36 | | /// Creates a new TrackException with the specified message. |
| | | 37 | | /// </summary> |
| | | 38 | | /// <param name="message">The error message.</param> |
| | | 39 | | public TrackException(string message) |
| | | 40 | | : base(message) { } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Creates a new TrackException with the specified message and inner exception. |
| | | 44 | | /// </summary> |
| | | 45 | | /// <param name="message">The error message.</param> |
| | | 46 | | /// <param name="innerException">The inner exception.</param> |
| | | 47 | | public TrackException(string message, Exception innerException) |
| | | 48 | | : base(message, innerException) { } |
| | | 49 | | } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Reserved for errors of the native LiveKit library. This version of the SDK does not throw it: a |
| | | 53 | | /// failed native request raises <see cref="InvalidOperationException"/>, and errors reported by the |
| | | 54 | | /// server raise <see cref="RoomException"/>. |
| | | 55 | | /// </summary> |
| | | 56 | | public class FfiException : Exception |
| | | 57 | | { |
| | | 58 | | /// <summary> |
| | | 59 | | /// Creates a new FfiException with the specified message. |
| | | 60 | | /// </summary> |
| | | 61 | | /// <param name="message">The error message.</param> |
| | | 62 | | public FfiException(string message) |
| | | 63 | | : base(message) { } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Creates a new FfiException with the specified message and inner exception. |
| | | 67 | | /// </summary> |
| | | 68 | | /// <param name="message">The error message.</param> |
| | | 69 | | /// <param name="innerException">The inner exception.</param> |
| | | 70 | | public FfiException(string message, Exception innerException) |
| | | 71 | | : base(message, innerException) { } |
| | | 72 | | } |
| | | 73 | | } |