aboutsummaryrefslogtreecommitdiff
path: root/plugins/crypto-vala/src/error.vala
blob: c694dfc726ae5bd256c7b5cedd67451ad1915b14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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());
    }
}
}