1 package org.apache.slide.projector.i18n; 2 3 import java.util.Locale ; 4 5 public class ErrorMessage extends DefaultMessage { 6 private final static String SUMMARY = "summary"; 7 private final static String DETAILS = "details"; 8 9 public ErrorMessage(String messageId) { 10 super(messageId); 11 } 12 13 public ErrorMessage(String messageId, Object [] arguments) { 14 super(messageId, arguments); 15 } 16 17 public String getSummary(Locale locale) throws MessageNotFoundException { 18 return getText(SUMMARY, locale); 19 } 20 21 public String getSummary(Locale locale, String defaultSummary) { 22 return getText(SUMMARY, defaultSummary, locale); 23 } 24 25 public String getDetails(Locale locale) throws MessageNotFoundException { 26 return getText(DETAILS, locale); 27 } 28 29 public String getDetails(Locale locale, String defaultDetails) { 30 return getText(DETAILS, defaultDetails, locale); 31 } 32 } 33 | Popular Tags |