1 //
2 // Copyright (c) 2010-2023 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 using Antmicro.Renode.Exceptions;
10 
11 namespace Antmicro.Renode.UserInterface.Exceptions
12 {
13     public class ParametersMismatchException : RecoverableException
14     {
ParametersMismatchException(Type type, string command, string name)15         public ParametersMismatchException(Type type, string command, string name) : base("Parameters did not match the signature")
16         {
17             Name = name;
18             Type = type;
19             Command = command;
20         }
ParametersMismatchException(Type type, string command, string name, string message)21         public ParametersMismatchException(Type type, string command, string name, string message) : base(message)
22         {
23             Name = name;
24             Type = type;
25             Command = command;
26         }
27 
28         public string Name { get; }
29         public Type Type { get; }
30         public string Command { get; }
31     }
32 }
33