Removed usage of obsoleted ArgumentNullOrEmptyException
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Umbraco.Core.Exceptions;
|
||||
|
||||
namespace Umbraco.Core.Xml
|
||||
{
|
||||
@@ -37,7 +34,8 @@ namespace Umbraco.Core.Xml
|
||||
// allowed 'inline', not just at the beginning... whether or not we want to support that is up
|
||||
// for discussion.
|
||||
|
||||
if (string.IsNullOrWhiteSpace(xpathExpression)) throw new ArgumentNullOrEmptyException(nameof(xpathExpression));
|
||||
if (xpathExpression == null) throw new ArgumentNullException(nameof(xpathExpression));
|
||||
if (string.IsNullOrWhiteSpace(xpathExpression)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(xpathExpression));
|
||||
if (getPath == null) throw new ArgumentNullException(nameof(getPath));
|
||||
if (publishedContentExists == null) throw new ArgumentNullException(nameof(publishedContentExists));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user