mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
34 lines
820 B
C#
34 lines
820 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace GitHub.Runner.Worker
|
|
{
|
|
public class ActionNotFoundException : Exception
|
|
{
|
|
public ActionNotFoundException(Uri actionUri)
|
|
: base(FormatMessage(actionUri))
|
|
{
|
|
}
|
|
|
|
public ActionNotFoundException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
public ActionNotFoundException(string message, System.Exception inner)
|
|
: base(message, inner)
|
|
{
|
|
}
|
|
|
|
protected ActionNotFoundException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
private static string FormatMessage(Uri actionUri)
|
|
{
|
|
return $"An action could not be found at the URI '{actionUri}'";
|
|
}
|
|
}
|
|
}
|