1 package net.walend.somnifugi; 2 3 import javax.jms.MessageFormatException ; 4 5 10 11 public class SomniMessageFormatException 12 extends MessageFormatException 13 { 14 private static final long serialVersionUID = 0L; 15 16 private Throwable cause = this; 17 18 protected SomniMessageFormatException(String message) 19 { 20 super(message); 21 } 22 23 protected SomniMessageFormatException(Throwable nester) 24 { 25 super(nester.getMessage()); 26 cause = nester; 27 } 28 29 protected SomniMessageFormatException(String message, Throwable nester) 30 { 31 super(message); 32 cause = nester; 33 } 34 35 55 public Throwable getCause() 56 { 57 return (cause==this ? null : cause); 58 } 59 } 60 61 83 84 85 86 | Popular Tags |