Exceptions thrown by library are not correctly initialized and therefore are not informative enough