1 72 package com.ivata.groupware.business.mail.message; 73 74 import com.ivata.mask.util.SystemException; 75 76 77 86 public class MessageNotFoundException extends SystemException { 87 96 public MessageNotFoundException(String folderName, String messageId) { 97 this (folderName, messageId, (Throwable )null); 98 } 99 109 public MessageNotFoundException(String folderName, String messageId, 110 Throwable cause) { 111 super("ERROR in Mail: no message with id '" 112 + messageId 113 + "' in folder '" 114 + folderName 115 + "'.", 116 cause); 117 } 118 119 132 public MessageNotFoundException(String folderName, String messageId, 133 String additionalInformation) { 134 this (folderName, messageId, additionalInformation, null); 135 } 136 149 public MessageNotFoundException(String folderName, String messageId, 150 String additionalInformation, Throwable cause) { 151 super("ERROR in Mail: could not retrieve message '" 152 + messageId 153 + "' from folder '" 154 + folderName 155 + "': " 156 + additionalInformation 157 + ".", 158 cause); 159 } 160 } 161 | Popular Tags |