1 7 8 package com.memoire.vainstall.builder.util; 9 10 19 public class VAIBuilderException extends Exception { 20 21 22 private String title = ""; 23 private String shortMessage = ""; 24 private String longMessage = ""; 25 26 public VAIBuilderException(String title, String shortMessage, String longMessage) { 27 super(shortMessage); 28 this.title = title; 29 this.shortMessage = shortMessage; 30 this.longMessage = longMessage; 31 } 32 33 public String getMessageAsHtml() { 34 35 String out = "<html><b><font color=black size=2><left>"; 36 out += title + " :<br>"; 37 out += "<font color=red size=2>"+shortMessage+"</font><br><br>"; 38 if (longMessage != null) { 39 out += longMessage; 40 } 41 out += "</left></font></b></html>"; 42 43 return out; 44 } 45 46 } 47 | Popular Tags |