using System; #if !NETSTANDARD1_3 using System.Runtime.Serialization; #endif namespace JavaScriptEngineSwitcher.Core { /// /// The exception that is thrown when a JS engine is not found /// #if !NETSTANDARD1_3 [Serializable] #endif public sealed class JsEngineNotFoundException : Exception { /// /// Initializes a new instance of the class /// with a specified error message /// /// The message that describes the error public JsEngineNotFoundException(string message) : base(message) { } /// /// Initializes a new instance of the class /// with a specified error message and a reference to the inner exception /// that is the cause of this exception /// /// The error message that explains the reason for the exception /// The exception that is the cause of the current exception public JsEngineNotFoundException(string message, Exception innerException) : base(message, innerException) { } #if !NETSTANDARD1_3 /// /// Initializes a new instance of the class with serialized data /// /// The object that holds the serialized data /// The contextual information about the source or destination #if NET10_0_OR_GREATER [Obsolete(DiagnosticId = "SYSLIB0051")] #endif private JsEngineNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endif } }