|
@@ -49,8 +49,16 @@ ctkLDAPSearchFilter::ctkLDAPSearchFilter()
|
|
|
}
|
|
|
|
|
|
ctkLDAPSearchFilter::ctkLDAPSearchFilter(const QString& filter)
|
|
|
- : d(new ctkLDAPSearchFilterData(filter))
|
|
|
+ : d(0)
|
|
|
{
|
|
|
+ try
|
|
|
+ {
|
|
|
+ d = new ctkLDAPSearchFilterData(filter);
|
|
|
+ }
|
|
|
+ catch (const std::exception& e)
|
|
|
+ {
|
|
|
+ throw std::invalid_argument(e.what());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
ctkLDAPSearchFilter::ctkLDAPSearchFilter(const ctkLDAPSearchFilter& other)
|