anotherim-desktop/plugins/crypto-vala/src/error.vala
2019-09-16 23:31:11 +02:00

13 lines
245 B
Vala

namespace Crypto {
public errordomain Error {
ILLEGAL_ARGUMENTS,
GCRYPT
}
internal void may_throw_gcrypt_error(GCrypt.Error e) throws GLib.Error {
if (((int)e) != 0) {
throw new Crypto.Error.GCRYPT(e.to_string());
}
}
}