try {
definition->validate();
- } catch (const isc::Exception& ex) {
+ } catch (const isc::Exception&) {
// This is unlikely event that validation fails and may
// be only caused by programming error. To guarantee the
// data consistency we clear all option definitions that
-// Copyright (C) 2013-2014 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
try {
domain_name_.reset(new isc::dns::Name(name));
- } catch (const Exception& ex) {
+ } catch (const Exception&) {
isc_throw(InvalidOption4FqdnDomainName,
"invalid domain-name value '"
<< domain_name << "' when setting new domain-name for"
-// Copyright (C) 2013-2014 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
try {
domain_name_.reset(new isc::dns::Name(name, true));
- } catch (const Exception& ex) {
+ } catch (const Exception&) {
isc_throw(InvalidOption6FqdnDomainName, "invalid domain-name value '"
<< domain_name << "' when setting new domain-name for"
<< " DHCPv6 Client FQDN Option");
isc::util::InputBuffer name_buf(&buf[0], buf.size());
try {
domain_name_.reset(new isc::dns::Name(name_buf, true));
- } catch (const Exception& ex) {
+ } catch (const Exception&) {
isc_throw(InvalidOption6FqdnDomainName, "failed to parse"
"partial domain-name from wire format");
}
std::distance(first, last));
try {
domain_name_.reset(new isc::dns::Name(name_buf, true));
- } catch (const Exception& ex) {
+ } catch (const Exception&) {
isc_throw(InvalidOption6FqdnDomainName, "failed to parse"
"fully qualified domain-name from wire format");
}
// Validate IP Address.
try {
ip_io_address_ = isc::asiolink::IOAddress(value);
- } catch (const isc::asiolink::IOError& ex) {
+ } catch (const isc::asiolink::IOError&) {
isc_throw(NcrMessageError,
"Invalid ip address string for ip_address: " << value);
}
try {
CSVFile::append(row);
- } catch (const std::exception& ex) {
+ } catch (const std::exception&) {
// Catch any errors so we can bump the error counter than rethrow it
++write_errs_;
throw;
}
try {
CSVFile::append(row);
- } catch (const std::exception& ex) {
+ } catch (const std::exception&) {
// Catch any errors so we can bump the error counter than rethrow it
++write_errs_;
throw;
++lease) {
try {
lease_file.append(**lease);
- } catch (const isc::Exception& ex) {
+ } catch (const isc::Exception&) {
// Close the file
lease_file.close();
throw;
}
try {
info.severity_ = isc::log::getSeverity(severity_ptr->stringValue().c_str());
- } catch (const std::exception& ex) {
+ } catch (const std::exception&) {
isc_throw(BadValue, "Unsupported severity value '"
<< severity_ptr->stringValue() << "' ("
<< severity_ptr->getPosition() << ")");
.arg(process_->getCommandLine());
pid_ = process_->spawn();
- } catch (const ProcessSpawnError& ex) {
+ } catch (const ProcessSpawnError&) {
LOG_ERROR(dhcpsrv_logger, DHCPSRV_MEMFILE_LFC_SPAWN_FAIL);
}
}
std::string persist_val;
try {
persist_val = getParameter("persist");
- } catch (const Exception& ex) {
+ } catch (const Exception&) {
// If parameter persist hasn't been specified, we use a default value
// 'yes'.
persist_val = "true";
std::string lease_file;
try {
lease_file = getParameter("name");
- } catch (const Exception& ex) {
+ } catch (const Exception&) {
lease_file = getDefaultLeaseFilePath(u);
}
return (lease_file);
std::string lfc_interval_str = "0";
try {
lfc_interval_str = getParameter("lfc-interval");
- } catch (const std::exception& ex) {
+ } catch (const std::exception&) {
// Ignore and default to 0.
}
uint32_t lfc_interval = 0;
try {
lfc_interval = boost::lexical_cast<uint32_t>(lfc_interval_str);
- } catch (boost::bad_lexical_cast& ex) {
+ } catch (boost::bad_lexical_cast&) {
isc_throw(isc::BadValue, "invalid value of the lfc-interval "
<< lfc_interval_str << " specified");
}
try {
code = uint32_values_->getParam("code");
- } catch (const exception& ex) {
+ } catch (const exception&) {
// The code parameter was not found. Return an unspecified
// value.
return (OptionalValue<uint32_t>());
try {
rdlen = lexer.getNextToken(MasterToken::NUMBER).getNumber();
- } catch (const MasterLexer::LexerError& ex) {
+ } catch (const MasterLexer::LexerError&) {
isc_throw(InvalidRdataLength,
"Unknown RDATA length is invalid");
}
-// Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
try {
// This lock attempt is non-blocking.
Mutex::Locker locker(LoggerManager::getMutex(), false);
- } catch (Mutex::Locker::AlreadyLocked& e) {
+ } catch (Mutex::Locker::AlreadyLocked&) {
cout << "FIELD1 FIELD2 LOGGER_LOCK_TEST: MUTEXLOCK\n";
}
fs.seekg(0, std::ifstream::end);
pos = fs.tellg();
fs.close();
- } catch (const std::exception& ex) {
+ } catch (const std::exception&) {
return (0);
}
return (pos);
fs_->clear();
}
- } catch (const std::exception& ex) {
+ } catch (const std::exception&) {
close();
throw;
}