Package org.apache.ws.resource.faults

Examples of org.apache.ws.resource.faults.FaultException


   private static URI getDialect( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionType queryExprElem )
   {
      if ( !queryExprElem.isSetDialect(  ) )
      {
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   "The Dialect attribute is required by the WSRF-RP QueryExpressionType." );
      }

      try
      {
         return new URI( queryExprElem.getDialect(  ) );
      }
      catch ( URISyntaxException urise )
      {
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   "The Dialect attribute of the WSRF-RP QueryExpressionType must be a valid URI." );
      }
   }
View Full Code Here


   private static URI getDialect( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryExpressionType queryExprElem )
   {
      if ( !queryExprElem.isSetDialect(  ) )
      {
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   "The Dialect attribute is required by the WSRF-RP QueryExpressionType." );
      }

      try
      {
         return new URI( queryExprElem.getDialect(  ) );
      }
      catch ( URISyntaxException urise )
      {
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   "The Dialect attribute of the WSRF-RP QueryExpressionType must be a valid URI." );
      }
   }
View Full Code Here

      {
         throw tpdue;
      }
      catch ( TopicExpressionException tee )
      {
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   tee.getLocalizedMessage(  ) );
      }
   }
View Full Code Here

         return getProducerResource(  ).getTopicSet(  ).evaluateTopicExpression( m_topicExpr );
      }
      catch ( TopicExpressionException tee )
      {
         LOG.error( tee ); // should never happen since the TopicExpression
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   "An exception occurred evaluating the topic expression. " );
      }
   }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.faults.FaultException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.