Clean up SecurityException

- Remove unused SecurityExceptionType
- Add missing constructor for InnerException
- Add missing documentation
This commit is contained in:
Mark Monteiro
2020-04-13 13:13:48 -04:00
parent 9a0a4575ad
commit 6d35dd6b32
3 changed files with 31 additions and 33 deletions

View File

@@ -426,7 +426,7 @@ namespace MediaBrowser.Api
catch (SecurityException e)
{
// rethrow adding IP address to message
throw new SecurityException($"[{Request.RemoteIp}] {e.Message}");
throw new SecurityException($"[{Request.RemoteIp}] {e.Message}", e);
}
}