public static void assertion(bool b, MSError err, string msg) { if (!b) { throw new MException(err, "assertion failed: " + msg); } }
public MSError(MSError type, string title) { this.type = type; this.title = title; }
public MException(MSError err, string s) { error = err; info = s; }
public MException() { error = null; }