Example #1
0
 public static WhException Wrap(ObjError err)
 {
     return(new WhException(err));
 }
Example #2
0
 public WhException(string message, Exception innerException) : base(message, innerException)
 {
     this.error = new ObjError(-1, message);
 }
Example #3
0
 public WhException(ObjError err) : base(err?.Message ?? "unknown error")
 {
     this.error = err;
 }
Example #4
0
 public WhException(string message) : base(message)
 {
     this.error = new ObjError(-1, message);
 }