librenms/LibreNMS/Exceptions
VVelox c3007b483a add json_app_get and convert fail2ban over to JSON (#8571)
* add json_app_get function

* add numeric testing and version support

* now use json_app_get

* remove some unneeded code

* update the docs for json_app_get some more

* make the format checker happy

* add in min version support and now take extend name instead of the partial OID

* hmm... don't make min version optional

* add Exception usage for this all make min version actually work

* minor formatting cleanup

* minor style cleanup

* update json_app_get with $throw_me setting

* Use exceptions to fully handle errors.
Always update the application.  Include error message for use in UI.
Move data to data key for easier parsing.
Add test data

* make a few changes to the lovely changes from @murrant

* style cleanup

* now attempt parsing it the old way if a error of -5 is returned

* add new exceptions and rework them all

* add new exceptions and min version 0 no longer bypasses the key checks

* redo the error codes a bit and improve the comment about it all

* fix a a bit of formatting

* added JsonAppException and make the other JsonApp stuff a sub of it

* note JsonAppException

* fix class creation

* JsonAppBlank now extends JsonApp

* doh! add <?php

* update the poller to properly use the new exceptions

* no longer check for error twice and make sure the data key is present

* cleanup processing of legacy scripts

* tweak this a bit

* white space fix

* fix the tests for fail2ban
2018-05-25 21:16:16 -05:00
..
AuthenticationException.php feature: AD now supports nested groups (resubmit #7175) (#7259) 2017-10-04 21:31:17 +01:00
DatabaseConnectException.php refactor: Handle database exceptions properly (#8720) 2018-05-15 21:07:29 +01:00
FileExistsException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
FileNotFoundException.php Major Processors rewrite (#8066) 2018-02-05 07:39:13 -06:00
HostExistsException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
HostIpExistsException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
HostUnreachableException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
HostUnreachablePingException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
HostUnreachableSnmpException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
InvalidIpException.php feature: New IP parsing classes. Removes usage of Pear Net_IPv4 and Net_IPv6. (#7106) 2017-08-08 14:14:58 -05:00
InvalidModuleException.php save-test-data.php: Print a message when we encounter a bad module name (#8274) 2018-02-25 20:03:18 -06:00
InvalidPortAssocModeException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00
InvalidRrdTypeException.php feature: Allow customisation of rrd step/heartbeat when creating new rrd files (#5947) 2017-02-23 22:45:50 +00:00
JsonAppBlankJsonException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
JsonAppException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
JsonAppExtendErroredException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
JsonAppMissingKeysException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
JsonAppParsingFailedException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
JsonAppPollingFailedException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
JsonAppWrongVersionException.php add json_app_get and convert fail2ban over to JSON (#8571) 2018-05-25 21:16:16 -05:00
LockException.php fix: Use memcached to lock daily processes on Distributed Pollers (#7735) 2017-11-24 09:37:52 +00:00
SnmpVersionUnsupportedException.php PSR-2 Final cleanup (#4247) 2016-08-28 23:32:55 +01:00