Smartswitch
Data Members | List of all members
Smartswitch::Peer::UserGeneration::DuplicateNameException Exception Reference

This exception is thrown when there is no more attempts left to generate an unique alphanumeric User name. More...

defined in <DuplicateNameException.ice>

exception DuplicateNameException extends Smartswitch::GenericException { ... }

Inheritance diagram for Smartswitch::Peer::UserGeneration::DuplicateNameException:
Inheritance graph
[legend]
Collaboration diagram for Smartswitch::Peer::UserGeneration::DuplicateNameException:
Collaboration graph
[legend]

Data Members

int attempts
 The count of attempts to generate a User name done. More...
 
- Data Members inherited from Smartswitch::GenericException
string description
 The error message which could be displayed to a user. More...
 
string solution
 The possible way of working around the exception. More...
 

Detailed Description

This exception is thrown when there is no more attempts left to generate an unique alphanumeric User name.

A user generation profile has been configured to generate a new User with unique alphanumeric name with random generation of a numeric part of the name.
To fulfill this, Smartswitch obtains the numeric part of the generated User name pattern.
Then Smartswitch generates a random number and puts it into numeric name part according to a pattern.
If Smartswitch generates duplicates during several consequent attempts, this exception is thrown.

See also
Session::generateUsersWithInfo()

Data Member Documentation

◆ attempts

int attempts

The count of attempts to generate a User name done.


The documentation for this exception was generated from the following file: