Esempio n. 1
0
 private void failIf(bool condition, string message, CommandExceptionType type)
 {
     if (condition)
     {
         throw new CommandException(message, type);
     }
 }
Esempio n. 2
0
 /// Constructs a CommandException with a message and CommandExceptionType
 public CommandException(string message, CommandExceptionType exceptionType) : base(message)
 {
     type = exceptionType;
 }
Esempio n. 3
0
 public CommandException(CommandExceptionType type) : base(type.ToString())
 {
 }
Esempio n. 4
0
		/// Constructs a CommandException with a message and CommandExceptionType
		public CommandException(string message, CommandExceptionType exceptionType) : base(message)
		{
			type = exceptionType;
		}
Esempio n. 5
0
 public CommandException(CommandExceptionType type, string message) : base($"{type} [{message}]")
 {
 }