*
* @throws Exception
*/
public static IDebugMessage getMessage(int type) throws Exception {
IntHashtable messages = getInstance().getMessages();
if (messages.containsKey(type)) {
return (IDebugMessage) messages.get(type).getClass().newInstance();
} else {
throw new Exception("Can't find message for ID = " + type //$NON-NLS-1$
+ " in Debug messages registry!");//$NON-NLS-1$
}