Subversion Repositories bacoAlunos

Rev

Rev 1415 | Rev 1692 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1415 Rev 1426
Line 478... Line 478...
478
 
478
 
479
        }
479
        }
480
        catch (1.5.0/docs/api/java/lang/Exception.html">Exception e)
480
        catch (1.5.0/docs/api/java/lang/Exception.html">Exception e)
481
        {
481
        {
482
            logger.error(e, e);
482
            logger.error(e, e);
483
            List<String> emails = new ArrayList<String>();
-
 
484
            emails.add(ConfigProperties.getProperty("admin.email"));
483
            List<String> emails = ConfigProperties.getListValues("admin.email");
485
            List<String> arguments = new ArrayList<String>();
484
            List<String> arguments = new ArrayList<String>();
486
            1.5.0/docs/api/java/lang/String.html">String cause = e.getCause() == null ? "" : e.getCause().toString();
485
            1.5.0/docs/api/java/lang/String.html">String cause = e.getCause() == null ? "" : e.getCause().toString();
487
            arguments.add((e.toString() + "\n" + cause).replace("\n","<br/>"));
486
            arguments.add((e.toString() + "\n" + cause).replace("\n","<br/>"));
488
            Email email = new Email("Erro de importacao de professores",emails,"baco@estgp.pt","messageToAdmin_pt.txt",arguments);
487
            Email email = new Email("Erro de importacao de professores",emails,"baco@estgp.pt","messageToAdmin_pt.txt",arguments);
489
            new SendEmailService().sendEmail(email);
488
            new SendEmailService().sendEmail(email);