return true;
} Catch (MessageBuffer::Exception::Base) {
LogError("Broken protocol. Closing socket.");
+ } Catch (Exception::BrokenProtocol) {
+ LogError("Broken protocol. Closing socket.");
} catch (const std::string &e) {
LogError("String exception(" << e << "). Closing socket");
} catch (...) {
Deserialization::Deserialize(buffer, newPass);
return m_logic->resetUserPassword(user, newPass);
default:
- // TODO
- throw 1; // broken protocol
+ Throw(Exception::BrokenProtocol);
}
}
static_cast<const RSAPaddingAlgorithm>(padding));
}
default:
- // TODO
- throw 1; // broken protocol
+ Throw(Exception::BrokenProtocol);
}
}