1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #include <anna/ldap/internal/Exception.hpp>
10 #include <anna/ldap/Session.hpp>
11 #include <anna/ldap/ResultCode.hpp>
16 ldap::Exception::Exception(const ldap::Session* session, const ldap::ResultCode& resultCode, const char *fromFile, const int fromLine) :
17 anna::Exception("", "anna::ldap::Exception", fromFile, fromLine) {
18 string msg = session->asString();
20 msg += resultCode.asString();
22 anna::Exception::setErrorCode(resultCode.getValue());