Package org.eclipse.wst.wsi.internal.core

Examples of org.eclipse.wst.wsi.internal.core.WSIException


        documentFactory = (DocumentFactory) factoryClass.newInstance();
      }

      catch (Exception e)
      {
        throw new WSIException(
          "Could not instantiate document factory class: "
            + factoryClassName
            + ".",
          e);
      }
    }
    else
    {
      throw new WSIException("A WSIDocumentFactory implementation class was not found.");
    }

    // Return factory
    return documentFactory;
  }
View Full Code Here


      throw e;
    }

    catch (Exception e)
    {
      throw new WSIException(e.getMessage(), e);
    }

    return document;
  }
View Full Code Here

      reader.parse(inputSource);
    }

    catch (Exception e)
    {
      throw new WSIException("Could not read and parse profile definition.", e);
    }
    finally
    {
      //Check to see if the version of test asssertion document is supported
      if (!Utils.isValidProfileTADVersion(profileAssertions))
      {
      String tadVersion = profileAssertions.getTADVersion();
      if(tadVersion != null)
      {
        String tadName = profileAssertions.getTADName();
          throw new WSIException(
          "\nVersion "
            + tadVersion
            + " of the \""
            + tadName
            + "\"\n"
            + "document is not compatible with this version of"
            + "\n"
            + "the test tools.");
      }
      else
      {
        throw new WSIException("WS-I validation was unable to run. Unable to read the test assertion document.");
      }
      }
    }

    // The assertions from the TAD are reordered for purposes of processing. All
View Full Code Here

                catch (Throwable t)
                {
                  // NOTE: An exception will occur if the XML schema file is not found or if it is not formatted correctly
                  if (throwException)
                    throw new WSIException(t.getMessage(), t);
                }
              }
            }
          }
View Full Code Here

                }
                catch (Throwable t)
               {
                 // NOTE: An exception will occur if the XML schema file is not
             // found or if it is not formatted correctly
                 if (throwException) throw new WSIException(t.getMessage(), t);
               }
             }
           }
         }
         n = n.getNextSibling();
View Full Code Here

        e.printStackTrace();

      if (e instanceof WSIException)
        throw (WSIException) e;
      else
        throw new WSIException(e.getMessage(), e);
    }

    finally
    {
      // Indicate that we are done with this assertion target
View Full Code Here

      }
    }

    catch (Exception e)
    {
      throw new WSIException("Could not write document.", e);
    }

    // Flush and close the writer
    printWriter.flush();
    //printWriter.close();   
View Full Code Here

      writer.close();
    }

    catch (IOException ioe)
    {
      throw new WSIException(ioe.toString(), ioe);
    }
  }
View Full Code Here

   * @see org.eclipse.wst.wsi.internal.core.log.LogWriter#write(Log, Writer)
   */
  public synchronized void write(Log log, Writer writer) throws WSIException
  {
    // ADD:
    throw new WSIException("Write entire log file function not supported yet.");
  }
View Full Code Here

      int index = httpHeaders.indexOf(" ");
      int index2 = httpHeaders.indexOf(" ", index + 1);

      if ((index == -1) || (index2 == -1))
      {
        throw new WSIException(
          "Could not find status code in http headers: [" + httpHeaders + "].");
      }

      else
      {
        statusCode = httpHeaders.substring(index + 1, index2);
      }
    }

    else
    {
      throw new WSIException(
        "Could not find status code in http headers: [" + httpHeaders + "].");
    }

    // Return status code
    return statusCode;
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsi.internal.core.WSIException

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.