mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Try use ReadOnlySpan<char> instead of String for applicable API - Use Customized Exception to return error result
23 lines
638 B
C#
23 lines
638 B
C#
using System;
|
|
|
|
namespace Flow.Launcher.Plugin.Explorer.Exceptions
|
|
{
|
|
public class SearchException : Exception
|
|
{
|
|
public string EngineName { get; }
|
|
public SearchException(string engineName, string message) : base(message)
|
|
{
|
|
EngineName = engineName;
|
|
}
|
|
|
|
public SearchException(string engineName, string message, Exception innerException) : base(message, innerException)
|
|
{
|
|
EngineName = engineName;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{EngineName} Search Exception:\n {base.ToString()}";
|
|
}
|
|
}
|
|
}
|