001    
002    package org.apache.servicemix.wsn.jaxws;
003    
004    import javax.xml.ws.WebFault;
005    import org.oasis_open.docs.wsn.br_2.PublisherRegistrationRejectedFaultType;
006    
007    @WebFault(name = "PublisherRegistrationRejectedFault", targetNamespace = "http://docs.oasis-open.org/wsn/br-2")
008    public class PublisherRegistrationRejectedFault
009        extends Exception
010    {
011    
012        private PublisherRegistrationRejectedFaultType faultInfo;
013    
014        public PublisherRegistrationRejectedFault(String message, PublisherRegistrationRejectedFaultType faultInfo) {
015            super(message);
016            this.faultInfo = faultInfo;
017        }
018    
019        public PublisherRegistrationRejectedFault(String message, PublisherRegistrationRejectedFaultType faultInfo, Throwable t) {
020            super(message, t);
021            this.faultInfo = faultInfo;
022        }
023    
024        public PublisherRegistrationRejectedFaultType getFaultInfo() {
025            return faultInfo;
026        }
027    
028    }