Skip to content

Commit a22b923

Browse files
committed
Removed a EmptyValueException class
1 parent 171d56b commit a22b923

File tree

4 files changed

+5
-49
lines changed

4 files changed

+5
-49
lines changed

src/JavaScriptEngineSwitcher.Core/EmptyValueException.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/JavaScriptEngineSwitcher.Core/JavaScriptEngineSwitcher.Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
5. In the `JsRuntimeException` class was added three new properties: `Type`, `DocumentName` and `CallStack`;
2222
6. `JsScriptInterruptedException` class was renamed to the `JsInterruptedException` class and now is inherited from the `JsRuntimeException` class;
2323
7. `JsEngineLoadException` class now is inherited from the `JsEngineException` class;
24-
8. `Format` method of the `JsErrorHelpers` class was renamed to the `GenerateErrorDetails`.</PackageReleaseNotes>
24+
8. Removed a `EmptyValueException` class;
25+
9. `Format` method of the `JsErrorHelpers` class was renamed to the `GenerateErrorDetails`.</PackageReleaseNotes>
2526
</PropertyGroup>
2627

2728
<Import Project="../../build/common.props" />

src/JavaScriptEngineSwitcher.Core/JsEngineSwitcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public IJsEngine CreateDefaultEngine()
122122
string defaultJsEngineName = DefaultEngineName;
123123
if (string.IsNullOrWhiteSpace(defaultJsEngineName))
124124
{
125-
throw new EmptyValueException(Strings.Configuration_DefaultJsEngineNameNotSpecified);
125+
throw new InvalidOperationException(Strings.Configuration_DefaultJsEngineNameNotSpecified);
126126
}
127127

128128
IJsEngine jsEngine = CreateEngine(defaultJsEngineName);

src/JavaScriptEngineSwitcher.Core/readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
`JsRuntimeException` class;
3535
7. `JsEngineLoadException` class now is inherited from the `JsEngineException`
3636
class;
37-
8. `Format` method of the `JsErrorHelpers` class was renamed to the
37+
8. Removed a `EmptyValueException` class;
38+
9. `Format` method of the `JsErrorHelpers` class was renamed to the
3839
`GenerateErrorDetails`.
3940

4041
=============

0 commit comments

Comments
 (0)