]> wagnertech.de Git - mDoc.git/blob - csharp/mutil/ReturnCode.cs
csharp-s6g
[mDoc.git] / csharp / mutil / ReturnCode.cs
1 using System;
2
3 namespace mutil {
4
5     public class ReturnCode {
6         public const int OK = 0;
7         public const int FileNotFound = 1;
8
9         int RC;
10         public ReturnCode(int RC) {
11             this.RC = RC;
12         }
13         override public string ToString() {
14             switch (this.RC) {
15                 case OK          : return "OK";
16                 case FileNotFound: return "FileNotFound";
17                 default: throw new System.Exception("Unknown RC: " + Convert.ToString(this.RC));
18             }
19         }
20     }
21 }