1 //
2 // Copyright (c) 2010-2018 Antmicro
3 // Copyright (c) 2011-2015 Realtime Embedded
4 //
5 // This file is licensed under the MIT License.
6 // Full license text is available in 'licenses/MIT.txt'.
7 //
8 using System;
9 
10 namespace Antmicro.Renode.Exceptions
11 {
12     public class RegistrationException : RecoverableException
13     {
14 
RegistrationException(string name, string parentName)15         public RegistrationException(string name, string parentName):base(string.Format("Could not register {0} in {1}.", name, parentName))
16         {
17         }
18 
RegistrationException(string name, string parentName, string reason)19         public RegistrationException (string name, string parentName, string reason):base(string.Format("Could not register {0} in {1}. Reason: {2}.", name, parentName, reason))
20         {
21         }
RegistrationException(string message)22         public RegistrationException(string message):base(message)
23         {
24         }
25     }
26 }
27 
28