how would you declare this in a class diagram?
enum ErrorTitleType;
public class Users
{
    #region Custom Exception
    public class UsersException : Exception
    {
        public ErrorTitleType TitleTypeError { get; set; }
        public UsersException(string message, ErrorTitleType Typ ) : base(message)
        {
            TitleTypeError = Typ;
        }
    }
}
UPDATE: i was trying to have a customize Exception class for each logical class to seperate the errors with the UI class. Thats why i have 'Users' which is the locgial and 'UserException' to identify that its the exception class for error handling for 'Users'. i hope im not confusing anyone
 
    
 
    
