mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-11 10:45:05 +00:00
29 lines
611 B
C#
29 lines
611 B
C#
using System;
|
|
|
|
namespace ICD.Common.Services
|
|
{
|
|
public sealed class ServiceNotFoundException : Exception
|
|
{
|
|
private const string DEFAULT_MESSAGE = "The requested service {0} was not found in the service provider";
|
|
|
|
public Type ServiceType { get; set; }
|
|
|
|
public ServiceNotFoundException()
|
|
{
|
|
}
|
|
|
|
public ServiceNotFoundException(string message) : base(message)
|
|
{
|
|
}
|
|
|
|
public ServiceNotFoundException(string message, Exception inner) : base(message, inner)
|
|
{
|
|
}
|
|
|
|
public ServiceNotFoundException(Type type) : base(string.Format(DEFAULT_MESSAGE, type.Name))
|
|
{
|
|
ServiceType = type;
|
|
}
|
|
}
|
|
}
|