#include <dhcpsrv/alloc_engine.h>
#include <dhcpsrv/alloc_engine_log.h>
#include <dhcpsrv/cfgmgr.h>
+#include <dhcpsrv/dhcpsrv_exceptions.h>
#include <dhcpsrv/dhcpsrv_log.h>
#include <dhcpsrv/host_mgr.h>
#include <dhcpsrv/host.h>
return (leases);
}
+ } catch (const NoSuchLease&) {
+ throw;
+
} catch (const isc::Exception& e) {
// Some other error, return an empty lease.
return (leases);
+ } catch (const NoSuchLease&) {
+ throw;
+
} catch (const isc::Exception& e) {
// Some other error, return an empty lease.
ctx.new_lease_ = requestLease4(ctx);
}
+ } catch (const NoSuchLease&) {
+ throw;
+
} catch (const isc::Exception& e) {
// Some other error, return an empty lease.
LOG_ERROR(alloc_engine_logger, ALLOC_ENGINE_V4_ALLOC_ERROR)