Package com.cubusmail.common.exceptions.folder

Examples of com.cubusmail.common.exceptions.folder.GWTMailFolderException


      log.error( e.getMessage(), e );
      if ( e.hasErrorCode( IErrorCodes.EXCEPTION_FOLDER_ALREADY_EXIST ) ) {
        throw new GWTMailFolderExistException( null, folderName );
      }
      else {
        throw new GWTMailFolderException( null, folderName );
      }
    }
  }
View Full Code Here


      log.error( e.getMessage(), e );
      if ( e.hasErrorCode( IErrorCodes.EXCEPTION_FOLDER_ALREADY_EXIST ) ) {
        throw new GWTMailFolderExistException( null, sourceFolder.getName() );
      }
      else {
        throw new GWTMailFolderException( null, sourceFolder.getName() );
      }
    }
  }
View Full Code Here

      log.error( e.getMessage(), e );
      if ( e.hasErrorCode( IErrorCodes.EXCEPTION_FOLDER_ALREADY_EXIST ) ) {
        throw new GWTMailFolderExistException( null, e.getFolder().getName() );
      }
      else {
        throw new GWTMailFolderException( null, e.getFolder().getName() );
      }
    }
  }
View Full Code Here

      mailbox.deleteFolder( folderId );
      log.debug( "...successful" );
    }
    catch (MailFolderException e) {
      log.error( e.getMessage(), e );
      throw new GWTMailFolderException( null, e.getFolder().getName() );
    }
  }
View Full Code Here

      mailbox.emptyFolder( folderId );
      log.debug( "...successful" );
    }
    catch (MailFolderException e) {
      log.error( e.getMessage(), e );
      throw new GWTMailFolderException( null, e.getFolder().getName() );
    }
  }
View Full Code Here

      }

      public void onFailure( Throwable caught ) {

        GWTExceptionHandler.handleException( caught );
        GWTMailFolderException e = (GWTMailFolderException) caught;
        if ( caught instanceof GWTMailFolderExistException ) {
          SC.showPrompt( TextProvider.get().common_error(), TextProvider.get()
              .exception_folder_already_exist( e.getFolderName() ) );
        }
        else {
          SC.showPrompt( TextProvider.get().common_error(), TextProvider.get().exception_folder_create(
              e.getFolderName() ) );
        }
        EventBroker.get().fireFoldersReload();
      }
    } );
  }
View Full Code Here

   * )
   */
  public void onFailure( Throwable caught ) {

    GWTExceptionHandler.handleException( caught );
    GWTMailFolderException e = (GWTMailFolderException) caught;
    SC.warn( TextProvider.get().exception_folder_empty( e.getFolderName() ), new BooleanCallback() {

      public void execute( Boolean value ) {

        GWTSessionManager.get().setCurrentMailFolder(
            (GWTMailFolder) GWTUtil.getGwtFolder( getSelectedTreeNode() ) );
View Full Code Here

   * )
   */
  public void onFailure( Throwable caught ) {

    GWTExceptionHandler.handleException( caught );
    GWTMailFolderException e = (GWTMailFolderException) caught;
    String text = null;
    if ( caught instanceof GWTMailFolderExistException ) {
      text = TextProvider.get().exception_folder_already_exist( e.getFolderName() );
    }
    else {
      text = TextProvider.get().exception_folder_move( e.getFolderName() );
    }
    SC.warn( text, new BooleanCallback() {

      public void execute( Boolean value ) {

View Full Code Here

   * )
   */
  public void onFailure( Throwable caught ) {

    GWTExceptionHandler.handleException( caught );
    GWTMailFolderException e = (GWTMailFolderException) caught;
    String text = null;
    if ( caught instanceof GWTMailFolderExistException ) {
      text = TextProvider.get().exception_folder_already_exist( e.getFolderName() );
    }
    else {
      text = TextProvider.get().exception_folder_rename( e.getFolderName() );
    }
    SC.warn( text, new BooleanCallback() {

      public void execute( Boolean value ) {

View Full Code Here

   * )
   */
  public void onFailure( Throwable caught ) {

    GWTExceptionHandler.handleException( caught );
    GWTMailFolderException e = (GWTMailFolderException) caught;

    SC.warn( TextProvider.get().exception_folder_delete( e.getFolderName() ), new BooleanCallback() {

      public void execute( Boolean value ) {

        EventBroker.get().fireFoldersReload();
      }
View Full Code Here

TOP

Related Classes of com.cubusmail.common.exceptions.folder.GWTMailFolderException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.