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