Examples of TechnicalException


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

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

        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

Examples of de.spotnik.TechnicalException

        {
            this.manager.closeIndexWriter();
        }
        catch( IOException ex)
        {
            throw new TechnicalException("can't close index", ex);
        }
    }
View Full Code Here

Examples of de.spotnik.TechnicalException

           
            message.getMimeMessage().writeTo(out);
        }
        catch( FileNotFoundException ex)
        {
            throw new TechnicalException("can't add message, path seems not to exist", ex);
        }
        catch( IOException ex)
        {
            throw new TechnicalException("can't add message, unable to write", ex);
        }
        catch( MessagingException ex)
        {
            throw new BusinessException("can't add message", ex);
        }
View Full Code Here

Examples of de.spotnik.TechnicalException

           
            return searcher.search(query);
        }
        catch( IOException ex)
        {
            throw new TechnicalException("unable to open index for reading", ex);
        }
        catch( ParseException ex)
        {
            throw new BusinessException("can't parse query", ex);
        }
View Full Code Here

Examples of de.spotnik.TechnicalException

    @Transactional( propagation = Propagation.REQUIRED)
    public void addMessage( MailAccount account, Message currentMsg) throws TechnicalException
    {
        if( this.persister == null)
        {
            throw new TechnicalException("can't save messages, persister not set");
        }
       
        WrappedMessage wrappedMessage = null;
        try
        {
View Full Code Here

Examples of de.spotnik.TechnicalException

            rootFolder = store.getDefaultFolder();
            readFolder(account, rootFolder, true);
        }
        catch( NoSuchProviderException ex)
        {
            throw new TechnicalException(ex);
        }
        catch( MessagingException ex)
        {
            throw new BusinessException(ex);
        }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

    @Override
    protected void internalInit() {
        CommonHelper.assertNotBlank("callbackUrl", this.callbackUrl);
        CommonHelper.assertNotNull("logoutHandler", this.logoutHandler);
        if (CommonHelper.isBlank(this.casLoginUrl) && CommonHelper.isBlank(this.casPrefixUrl)) {
            throw new TechnicalException("casLoginUrl and casPrefixUrl cannot be both blank");
        }
        if (this.casPrefixUrl != null && !this.casPrefixUrl.endsWith("/")) {
            this.casPrefixUrl += "/";
        }
        if (CommonHelper.isBlank(this.casPrefixUrl)) {
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

            }
            logger.debug("casProfile : {}", casProfile);
            return casProfile;
        } catch (final TicketValidationException e) {
            logger.error("cannot validate CAS ticket : {} / {}", ticket, e);
            throw new TechnicalException(e);
        }
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

   
    /**
     * {@inheritDoc}
     */
    protected RedirectAction retrieveRedirectAction(final WebContext context) {
        throw new TechnicalException("Not supported by the CAS proxy receptor");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.