diff options
author | xue <> | 2007-03-09 20:31:37 +0000 |
---|---|---|
committer | xue <> | 2007-03-09 20:31:37 +0000 |
commit | 8375e06bc985d25d6dadf146111fe8eaf40e8a26 (patch) | |
tree | c90d4a5dc6dcc351286fc04bb19a1aeb625378c6 /framework | |
parent | 612c7553d7bb6a067b6eb49602f67a4893cc4902 (diff) |
added exception message.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Exceptions/messages.txt | 7 | ||||
-rw-r--r-- | framework/Security/TDbUserManager.php | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/framework/Exceptions/messages.txt b/framework/Exceptions/messages.txt index 164b81d3..f5b06e85 100644 --- a/framework/Exceptions/messages.txt +++ b/framework/Exceptions/messages.txt @@ -372,4 +372,9 @@ soapservice_request_invalid = SOAP server '{0}' not found. soapservice_serverid_required = <soap> element must have 'id' attribute.
soapservice_serverid_duplicated = SOAP server ID '{0}' is duplicated.
soapserver_id_invalid = Invalid SOAP server ID '{0}'. It should not end with '.wsdl'.
-soapserver_version_invalid = Invalid SOAP version '{0}'. It must be either '1.1' or '1.2'.
\ No newline at end of file +soapserver_version_invalid = Invalid SOAP version '{0}'. It must be either '1.1' or '1.2'.
+
+dbusermanager_userclass_required = TDbUserManager.UserClass is required.
+dbusermanager_userclass_invalid = TDbUserManager.UserClass '{0}' is not a valid user class. The class must extend TDbUser.
+dbusermanager_connectionid_invalid = TDbUserManager.ConnectionID '{0}' does not point to a valid TDataSourceConfig module.
+dbusermanager_connectionid_required = TDbUserManager.ConnectionID is required.
\ No newline at end of file diff --git a/framework/Security/TDbUserManager.php b/framework/Security/TDbUserManager.php index 9824ba86..a2f30642 100644 --- a/framework/Security/TDbUserManager.php +++ b/framework/Security/TDbUserManager.php @@ -176,7 +176,7 @@ class TDbUserManager extends TModule implements IUserManager throw new TConfigurationException('dbusermanager_connectionid_invalid',$connectionID);
}
else
- throw new TConfigurationException('dbusermanager_connectionid_empty');
+ throw new TConfigurationException('dbusermanager_connectionid_required');
}
}
|