< Summary

Information
Class: LiveKit.Rtc.TrackException
Assembly: LivekitRtc
File(s): /home/runner/work/livekit-server-sdk-dotnet/livekit-server-sdk-dotnet/LivekitRtc/Exceptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 73
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
.ctor(...)100%210%

File(s)

/home/runner/work/livekit-server-sdk-dotnet/livekit-server-sdk-dotnet/LivekitRtc/Exceptions.cs

#LineLine coverage
 1// author: https://github.com/pabloFuente
 2
 3using System;
 4
 5namespace 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)
 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)
 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)
 040            : 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)
 048            : 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}