< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Net.SecurityException
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Net/SecurityException.cs
Line coverage
33%
Covered lines: 2
Uncovered lines: 4
Coverable lines: 6
Total lines: 37
Line coverage: 33.3%
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

Coverage history

Coverage history 0 25 50 75 100

Metrics

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

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/Net/SecurityException.cs

#LineLine coverage
 1using System;
 2
 3namespace MediaBrowser.Controller.Net
 4{
 5    /// <summary>
 6    /// The exception that is thrown when a user is authenticated, but not authorized to access a requested resource.
 7    /// </summary>
 8    public class SecurityException : Exception
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="SecurityException"/> class.
 12        /// </summary>
 13        public SecurityException()
 014            : base()
 15        {
 016        }
 17
 18        /// <summary>
 19        /// Initializes a new instance of the <see cref="SecurityException"/> class.
 20        /// </summary>
 21        /// <param name="message">The message that describes the error.</param>
 22        public SecurityException(string message)
 223            : base(message)
 24        {
 225        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the <see cref="SecurityException"/> class.
 29        /// </summary>
 30        /// <param name="message">The message that describes the error.</param>
 31        /// <param name="innerException">The exception that is the cause of the current exception, or a null reference i
 32        public SecurityException(string message, Exception innerException)
 033            : base(message, innerException)
 34        {
 035        }
 36    }
 37}