1 20 21 package org.xmpp.component; 22 23 import org.xmpp.packet.StreamError; 24 25 30 public class ComponentException extends Exception { 31 32 private StreamError streamError; 33 34 public ComponentException() { 35 super(); 36 } 37 38 public ComponentException(String message) { 39 super(message); 40 } 41 42 public ComponentException(String message, Throwable cause) { 43 super(message, cause); 44 } 45 46 public ComponentException(Throwable cause) { 47 super(cause); 48 } 49 50 public ComponentException(String message, StreamError streamError) { 51 super(message); 52 this.streamError = streamError; 53 } 54 55 public ComponentException(StreamError streamError) { 56 super(streamError.getCondition().toXMPP()); 57 this.streamError = streamError; 58 } 59 60 public StreamError getStreamError() { 61 return streamError; 62 } 63 } 64 | Popular Tags |