Package com.cubusmail.common.exceptions

Examples of com.cubusmail.common.exceptions.GWTInvalidAddressException


        log.error( e.getMessage(), e );
      }
    }
    catch (AddressException e) {
      log.error( e.getMessage(), e );
      throw new GWTInvalidAddressException( e.getMessage(), e.getRef() );
    }
    catch (SendFailedException e) {
      log.error( e.getMessage(), e );
      if ( "Invalid Addresses".equals( e.getMessage() ) ) {
        String address = "";
        try {
          address = MessageUtils.getMailAdressString( e.getInvalidAddresses(), AddressStringType.PERSONAL );
        }
        catch (MessagingException ex) {
          log.error( ex.getMessage(), ex );
        }
        throw new GWTInvalidAddressException( e.getMessage(), address );
      }
      else {
        throw new GWTMessageException( e.getMessage() );
      }
    }
View Full Code Here


      }
      log.debug( "...successful" );
    }
    catch (AddressException e) {
      log.error( e.getMessage(), e );
      throw new GWTInvalidAddressException( e.getMessage(), e.getRef() );
    }
    catch (MessagingException e) {
      log.error( e.getMessage(), e );
      throw new GWTMessageException( e.getMessage() );
    }
View Full Code Here

TOP

Related Classes of com.cubusmail.common.exceptions.GWTInvalidAddressException

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.