anotherim-desktop/plugins/crypto-vala/src/error.vala

13 lines
240 B
Vala
Raw Normal View History

2019-09-10 18:55:24 +00:00
namespace Crypto {
public errordomain Error {
ILLEGAL_ARGUMENTS,
GCRYPT
}
internal void may_throw_gcrypt_error(GCrypt.Error e) throws Error {
2019-09-10 18:55:24 +00:00
if (((int)e) != 0) {
throw new Crypto.Error.GCRYPT(e.to_string());
}
}
}