Package de.spotnik

Examples of de.spotnik.BusinessException


        try
        {
            account = UserSession.getCurrentAccount();
            if( account == null)
            {
                throw new BusinessException("no active user session (no user logged in)");
            }
           
            List<TagTO> tagList = accountController.findAllTags(account.getId());
           
            for( TagTO tag : tagList)
View Full Code Here


            indexWriter = this.manager.getIndexWriter();
            indexWriter.addDocument(doc);
        }
        catch( IOException ex)
        {
            throw new BusinessException("can't add message", ex);
        }
    }
View Full Code Here

            indexReader.deleteDocuments(term);
            indexReader.close();
        }
        catch( IOException ex)
        {
            throw new BusinessException("can't delete message", ex);
        }
    }
View Full Code Here

        {
            throw new TechnicalException("can't add message, unable to write", ex);
        }
        catch( MessagingException ex)
        {
            throw new BusinessException("can't add message", ex);
        }
        finally
        {
            if( out != null)
            {
View Full Code Here

            catch( IOException ex)
            {
                LOG.error(ex);
            }
           
            throw new BusinessException("unable to delete message: " + path);
        }
    }
View Full Code Here

        {
            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

                searchResult.add(hit.getDocument());
            }
        }
        catch( IOException ex)
        {
            throw new BusinessException("can't process search results", ex);
        }
       
        return searchResult;
    }
View Full Code Here

                wrap();
                initSpotnikMessage(account);
            }
            catch( MessagingException ex)
            {
                throw new BusinessException("error creating wrapped message", ex);
            }
            catch( IOException ex)
            {
                throw new BusinessException("error creating wrapped message", ex);
            }
        }
        else
        {
            throw new BusinessException("Message must be of type MimeMessage");
        }
    }
View Full Code Here

            this.mimeMessage = new MimeMessage(session, new ByteArrayInputStream(message.getRawMessage().getBytes()));
            wrap();
        }
        catch( MessagingException ex)
        {
            throw new BusinessException("error creating wrapped message", ex);
        }
        catch( IOException ex)
        {
            throw new BusinessException("error creating wrapped message", ex);
        }
    }
View Full Code Here

        {
            throw new TechnicalException(ex);
        }
        catch( MessagingException ex)
        {
            throw new BusinessException(ex);
        }
        finally
        {
            if( store != null && store.isConnected())
            {
View Full Code Here

TOP

Related Classes of de.spotnik.BusinessException

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.