Obsoleted exceptions that shouldn't be used anymore or be refactored

This commit is contained in:
Ronald Barendse
2019-10-04 01:00:09 +02:00
parent 77df15eeaa
commit dc5cdfd3d1
7 changed files with 7 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ namespace Umbraco.Core.Persistence
/// An exception used to indicate that an Umbraco entity could not be found.
/// </summary>
/// <seealso cref="System.Exception" />
[Obsolete("Instead of throwing an exception, return null or an HTTP 404 status code instead.")]
[Serializable]
public class EntityNotFoundException : Exception
{