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