MAINT-5011: Per NickyD, make LLCertException::getMessage() const.

Also getCert().

Also LLProtectedDataException::getMessage().
master
Nat Goodspeed 2016-07-14 11:33:29 -04:00
parent 636ce117bb
commit cefa598e49
1 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ struct LLProtectedDataException: public std::runtime_error
{
LL_WARNS("SECAPI") << "Protected Data Error: " << msg << LL_ENDL;
}
std::string getMessage() { return what(); }
std::string getMessage() const { return what(); }
};
// class LLCertificate
@ -344,8 +344,8 @@ public:
LL_WARNS("SECAPI") << "Certificate Error: " << msg << LL_ENDL;
}
virtual ~LLCertException() throw() {}
LLPointer<LLCertificate> getCert() { return mCert; }
std::string getMessage() { return what(); }
LLPointer<LLCertificate> getCert() const { return mCert; }
std::string getMessage() const { return what(); }
protected:
LLPointer<LLCertificate> mCert;
};