mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
24 lines
580 B
C#
24 lines
580 B
C#
|
|
using Flow.Launcher.Plugin;
|
|||
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace Flow.Launcher.Core.ExternalPlugins
|
|||
|
|
{
|
|||
|
|
public class FlowPluginException : Exception
|
|||
|
|
{
|
|||
|
|
public PluginMetadata Metadata { get; set; }
|
|||
|
|
|
|||
|
|
public FlowPluginException(PluginMetadata metadata, Exception e) : base(e.Message, e)
|
|||
|
|
{
|
|||
|
|
Metadata = metadata;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override string ToString()
|
|||
|
|
{
|
|||
|
|
return $@"{Metadata.Name} Exception:
|
|||
|
|
Websites: {Metadata.Website}
|
|||
|
|
Author: {Metadata.Author}
|
|||
|
|
Version: {Metadata.Version}
|
|||
|
|
{base.ToString()}";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|