Merge pull request #6599 from ronaldbarendse/v8/bugfix/5947-custom-exceptions
Fixed and cleaned up custom exception classes
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
using System.Runtime.Serialization;
|
||||
using Umbraco.Core.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Configuration;
|
||||
using Umbraco.Core.Exceptions;
|
||||
using Umbraco.Core.IO;
|
||||
using Umbraco.Web.Models.ContentEditing;
|
||||
|
||||
namespace Umbraco.Web.Models.Trees
|
||||
@@ -27,7 +26,8 @@ namespace Umbraco.Web.Models.Trees
|
||||
/// <param name="menuUrl"></param>
|
||||
internal TreeNode(string nodeId, string parentId, string getChildNodesUrl, string menuUrl)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(nodeId)) throw new ArgumentNullOrEmptyException(nameof(nodeId));
|
||||
if (nodeId == null) throw new ArgumentNullException(nameof(nodeId));
|
||||
if (string.IsNullOrWhiteSpace(nodeId)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(nodeId));
|
||||
|
||||
Id = nodeId;
|
||||
ParentId = parentId;
|
||||
|
||||
Reference in New Issue
Block a user