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