Package com.structis.fichesst.shared.exception

Examples of com.structis.fichesst.shared.exception.TechnicalException


    /*
     * Probl�me de cr�ation de transaction comme : - r�seau - mauvaise url, username et password - time out
     */
    else if( ex instanceof TransactionException ) {
      result = new TechnicalException(ex, ConstantError.ERR_TRANSACTION);
    }

    /*
     * Probl�me de donn�es non conforme : - violation des constraint
     */
    else if( ex instanceof DataIntegrityViolationException || ex instanceof ConstraintViolationException ) {
      result = new TechnicalException(ConstantError.ERR_DONNES_INCORRECT);
    }

    /*
     * Probl�me de data access comme : - la base n'est pas correct
     */
    else if( ex instanceof DataAccessException ) {
      result = new TechnicalException(ex, ConstantError.ERR_DATA_ACCESS);
    }
    /*
     * Session expire
     */
    /*
     * else if (ex instanceof AuthenticationCredentialsNotFoundException){ result = new TechnicalException(ex,
     * ConstantError.ERR_SESSION_EXPIRE); }
     */
    /*
     * Access refuse
     */
    /*
     * else if (ex instanceof AccessDeniedException){ result = new FunctionalException(ex,
     * ConstantError.ERR_ACCES_REFUSE); }
     */

    /*
     * Autre erreurs : erreur inconnu
     */
    else {
      result = new TechnicalException(ex, ConstantError.ERR_INCONNU);
    }

    return result;
  }
View Full Code Here


        header = messages.commonTechErreurHeader();
        content = errorMessages.getString(f.getCode());
      }
    }
    else if( caught instanceof TechnicalException ) {
      TechnicalException f = (TechnicalException) caught;
      if( f.getCode() != null ) {
        header = messages.commonTechErreurHeader();
        content = errorMessages.getString(f.getCode());
      }
    }
    MessageBox.alert(header, content, null);

  }
View Full Code Here

TOP

Related Classes of com.structis.fichesst.shared.exception.TechnicalException

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.