mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 18:51:41 +00:00
39 lines
979 B
C#
39 lines
979 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Shell.Console.Commands {
|
|
public class MatthijsCommand: CommandBase {
|
|
public override string Name {
|
|
get {
|
|
return "matthijs";
|
|
}
|
|
}
|
|
|
|
public override string Summary {
|
|
get {
|
|
return "Executes tests Matthijs is working on. DO NOT EXECUTE WITHOUT INVESTIGATING WHAT IT DOES!!";
|
|
}
|
|
}
|
|
|
|
public override void Execute(string param) {
|
|
//Kernel.FileSystem.TestsMatthijs.TestNewATA();
|
|
//System.Diagnostics.Debugger.Break();
|
|
try {
|
|
try {
|
|
throw new Exception("Hello, Error!");
|
|
} finally {
|
|
System.Console.WriteLine("Finally Clause Called!");
|
|
}
|
|
} catch (Exception E){
|
|
System.Console.WriteLine("Error Occurred while executing Command!");
|
|
System.Console.Write("Details: ");
|
|
System.Console.WriteLine(E.Message);
|
|
}
|
|
}
|
|
|
|
public override void Help() {
|
|
System.Console.WriteLine(Summary);
|
|
}
|
|
}
|
|
}
|