| 1 |
namespace Crypto { |
| 2 |
|
| 3 |
public errordomain Error { |
| 4 |
ILLEGAL_ARGUMENTS, |
| 5 |
GCRYPT, |
| 6 |
AUTHENTICATION_FAILED, |
| 7 |
UNKNOWN |
| 8 |
} |
| 9 |
|
| 10 |
internal void may_throw_gcrypt_error(GCrypt.Error e) throws Error { |
| 11 |
if (((int)e) != 0) { |
| 12 |
throw new Crypto.Error.GCRYPT(e.to_string()); |
| 13 |
} |
| 14 |
} |
| 15 |
} |