Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ServiceNotFoundException.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Core
6 {
8  {
10  {
11  }
12 
13  public ServiceNotFoundException(Type serviceType)
14  : base(FormatServiceNotFoundMessage(serviceType))
15  {
16  ServiceType = serviceType;
17  }
18 
19  public ServiceNotFoundException(Type serviceType, Exception innerException)
20  : base(FormatServiceNotFoundMessage(serviceType), innerException)
21  {
22  ServiceType = serviceType;
23  }
24 
25 
26  public Type ServiceType { get; private set; }
27 
28 
29  private static string FormatServiceNotFoundMessage(Type serviceType)
30  {
31  return string.Format("Service [{0}] not found", serviceType.Name);
32  }
33  }
34 }
ServiceNotFoundException(Type serviceType, Exception innerException)