mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
Created S# .sln and moved project to src folder
This commit is contained in:
28
ICD.Common/Services/ServiceNotFoundException.cs
Normal file
28
ICD.Common/Services/ServiceNotFoundException.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user