コード例 #1
0
 private void failIf(bool condition, string message, CommandExceptionType type)
 {
     if (condition)
     {
         throw new CommandException(message, type);
     }
 }
コード例 #2
0
ファイル: CommandException.cs プロジェクト: Dianaka123/Tetris
 /// Constructs a CommandException with a message and CommandExceptionType
 public CommandException(string message, CommandExceptionType exceptionType) : base(message)
 {
     type = exceptionType;
 }
コード例 #3
0
 public CommandException(CommandExceptionType type) : base(type.ToString())
 {
 }
コード例 #4
0
ファイル: CommandException.cs プロジェクト: KMY520/strangeioc
		/// Constructs a CommandException with a message and CommandExceptionType
		public CommandException(string message, CommandExceptionType exceptionType) : base(message)
		{
			type = exceptionType;
		}
コード例 #5
0
 public CommandException(CommandExceptionType type, string message) : base($"{type} [{message}]")
 {
 }