1 18 package org.apache.activemq.transport.stomp; 19 20 import java.io.IOException ; 21 22 26 public class ProtocolException extends IOException { 27 28 private static final long serialVersionUID = -2869735532997332242L; 29 30 private final boolean fatal; 31 32 public ProtocolException() { 33 this(null); 34 } 35 public ProtocolException(String s) { 36 this(s, false); 37 } 38 public ProtocolException(String s, boolean fatal) { 39 this(s,fatal, null); 40 } 41 public ProtocolException(String s, boolean fatal, Throwable cause) { 42 super(s); 43 this.fatal = fatal; 44 initCause(cause); 45 } 46 47 public boolean isFatal() { 48 return fatal; 49 } 50 51 } 52 | Popular Tags |