error: added method to convert generic error into DnetError