source: binary-improvements2/MapRendering/Commands/Exception.cs@ 383

Last change on this file since 383 was 382, checked in by alloc, 2 years ago

Switched to use SpaceWizards.HttpListener

File size: 601 bytes
Line 
1using System;
2using System.Collections.Generic;
3
4namespace AllocsFixes.CustomCommands {
5 public class ConsoleCmdException : ConsoleCmdAbstract {
6 public override string[] GetCommands () {
7 return new[] { "exception" };
8 }
9
10 public override bool AllowedInMainMenu => true;
11
12 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
13 Log.Out ("Test info");
14 Log.Warning ("Test warning");
15 Log.Error ("Test error");
16 throw new Exception ("Test exception");
17 }
18
19 public override string GetDescription () {
20 return "Throw an exception / log messages";
21 }
22 }
23}
Note: See TracBrowser for help on using the repository browser.