Commit Graph

18 Commits

Author SHA1 Message Date
Thomas Lamprecht
097484f42d use new Exception.pm class to signal errors to caller
Allows a caller to acces the HTTP response code, which may be useful
to handle application logic. E.g., catching a HTTP_NOT_IMPLEMENTED
and fallback to an older method.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 12:03:44 +01:00
Thomas Lamprecht
6700b1517e add APIClient/Exception.pm class
As we do not want to depend on PVE libraries with this I forked of
the PVE::Exception class, removed all raise_* methods so that only
raise() itself was left over.

Also some minor adaptions to newer style for exporting where used.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 12:03:44 +01:00
Thomas Lamprecht
9c6d72b1b7 buildsys: also cleanup *.buildinfo files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-15 12:09:44 +01:00
Fabian Grünbichler
38eb3479f8 add missing if 2017-12-12 11:02:48 +01:00
Fabian Grünbichler
1d40f3c38c cleanup Net::SSLeay error handling
X509_get_fingerprint does not die - it only returns undef in case of
errors (or segfaults if the $cert pointer is invalid).
2017-11-27 10:19:02 +01:00
Fabian Grünbichler
adbda0b73e build: reformat debian/control
using wrap-and-sort -abt
2017-10-04 11:05:33 +02:00
Dietmar Maurer
f8dc2eb6f3 bump version to 2.0-2 2017-04-06 11:04:48 +02:00
Dietmar Maurer
444d641911 allow to specify cookie_name 2017-04-06 11:03:41 +02:00
Dietmar Maurer
bf0c1ca606 bump version tp 2.0-1 for debain stretch
Makefile: use "--product pmg,pve --dist stretch" for upload target
2017-03-10 09:07:50 +01:00
Dietmar Maurer
21e68a8a33 perftest1.pl: another example 2016-12-28 11:35:30 +01:00
Dietmar Maurer
8291fb9a6e example2.pl: add a second example 2016-12-28 11:04:37 +01:00
Dietmar Maurer
ce70bf815f example1.pl: remove unnecessary perfix /api2/json/ 2016-12-28 10:52:09 +01:00
Dietmar Maurer
bc39c2840a example1.pl: use warnings instead of -w flag 2016-12-28 10:49:20 +01:00
Dietmar Maurer
d12f292e8a add simple example code, bump version to 1.0-2 2016-12-28 10:47:23 +01:00
Dietmar Maurer
90ff1ec125 add missing dependencies 2016-12-16 09:34:14 +01:00
Dietmar Maurer
2834772d27 add dintsall target 2016-12-16 09:23:14 +01:00
Dietmar Maurer
5a3b38c15d add Makefile and debian package files 2016-12-16 09:22:27 +01:00
Dietmar Maurer
9ae947dd3e initial import
copied from pve-gui-tests
2016-12-16 08:52:37 +01:00