-
-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure script preparation exposes only Jint's exception type (#1927)
- Loading branch information
Showing
5 changed files
with
79 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Jint; | ||
|
||
/// <summary> | ||
/// Base class for exceptions thrown by Jint. | ||
/// </summary> | ||
public abstract class JintException : Exception | ||
{ | ||
internal JintException(string? message) : base(message) | ||
{ | ||
} | ||
|
||
internal JintException(string? message, Exception? innerException) : base(message, innerException) | ||
{ | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Jint; | ||
|
||
public sealed class ScriptPreparationException : JintException | ||
{ | ||
public ScriptPreparationException(string? message, Exception? innerException) : base(message, innerException) | ||
{ | ||
} | ||
} |