anchor.diff:      }
   
       private boolean function handleLoginOut() {
  -        if(isDefined("url.login") && ! structIsEmpty(form) && form.username != "") {
  -            var tmpUserId = application.user.user.login(username=form.username, password=form.password);
  -            if(tmpUserId != 0) {
  -                session.userId = tmpUserId;
  -                // TODO: show wrong password page
  -            }
  -        }
  -        if(isDefined("url.logout") && isDefined("session") && structKeyExists(session, 'userId')) {
  -            if(application.user.user.login(username=form.username, password=form.password)) {
  -                session.userId = 0;
  -                structClear(session);
  -            }
  -            else {
  -                application.cms.errorHandler.processNotFound(themeName='icedreaper_light', type="logout", detail="logout");
  -                abort;
  -            }
  -        }
  -        return true;
  +        try {
  +            if(isDefined("url.login") && ! structIsEmpty(form) && form.username != "") {
  +                var tmpUserId = application.user.user.login(username=form.username, password=form.password);
  +                if(tmpUserId != 0) {
  +                    session.userId = tmpUserId;
  +                    // TODO: show wrong password page
  +                }
  +            }
  +            if(isDefined("url.logout") && isDefined("session") && structKeyExists(session, 'userId')) {
  +                if(application.user.user.login(username=form.username, password=form.password)) {
  +                    session.userId = 0;
  +                    structClear(session);
  +                }
  +                else {
  +                    throw(type="error whiling logout", detail="handleLoginOut");
  +                }
  +            }
  +            return true;
  +        }
  +        catch(any e) {
  +            throw(type="error", detail="handleLoginOut");
  +        }
       }
   
       private boolean function handleActualUser() {
  
positive.code:             return true;
          }
          catch(any e) {
              return false;
          }
      }
  
  
negative.code:         		request.userId = 0;
          	}
          	
              try {
                  this.handleActualUser();
                  this.handleSes();
                  this.renderContent();
  
                  return true;
              }
              catch(any e) {
                  application.cms.errorHandler.processNotFound(themeName='icedreaper_light', type=e.type, detail=e.detail);
                  abort;
              }
          }
  