Skip to content

Commit 8432ec7

Browse files
committed
Catalog: Fix inconsistancy of exceptions thrown
1 parent 18f04c3 commit 8432ec7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Orm/Xtensive.Orm/Sql/Model/Catalog.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44

55
using System;
66
using System.Collections.Generic;
@@ -188,7 +188,7 @@ internal string GetActualDbName(IReadOnlyDictionary<string, string> catalogNameM
188188
if (!isNamesReadingDenied)
189189
return DbName;
190190
if (catalogNameMap==null)
191-
throw new InvalidOperationException("Unable to calculate real name for catalog");
191+
throw new ArgumentNullException("Unable to calculate real name for catalog");
192192
var name = GetDbNameInternal();
193193
string actualName;
194194
if (catalogNameMap.TryGetValue(name, out actualName))

0 commit comments

Comments
 (0)