com.plumtree.server.search.exceptions
Class PTSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.plumtree.openfoundation.util.XPException
                  extended by com.plumtree.server.marshalers.PTException
                      extended by com.plumtree.server.search.exceptions.PTSException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PTSIncompatibleRestrictionException, PTSInvalidArgumentException, PTSInvalidSearchException, PTSNoFieldValueException, PTSSearchServerConnectionException, PTSSyntaxException

public class PTSException
extends PTException

Base class for all exceptions defined in package com.plumtree.server.search.exceptions.

See Also:
Serialized Form

Constructor Summary
PTSException(java.lang.Exception e, java.lang.String message, int code)
          Create a PTSException that wraps an underlying native Exception object, and contains a Plumtree specific error message and error code (from PT_RESULTCODES).
PTSException(java.lang.String message, int code)
          Create a PTSException containing the specified error message and error code (from PT_RESULTCODES).
 
Method Summary
 
Methods inherited from class com.plumtree.server.marshalers.PTException
GetErrorCode, GetMessage, GetNestedException
 
Methods inherited from class com.plumtree.openfoundation.util.XPException
exceptionToString, ExceptionToString, GetInnerException, GetInstance, GetInstance, getMessage, GetStackTrace, printStackTrace, PrintStackTrace, printStackTrace, ToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PTSException

public PTSException(java.lang.String message,
                    int code)
Create a PTSException containing the specified error message and error code (from PT_RESULTCODES).

Parameters:
message - the error message associated with this error
code - the error code associated with this error

PTSException

public PTSException(java.lang.Exception e,
                    java.lang.String message,
                    int code)
Create a PTSException that wraps an underlying native Exception object, and contains a Plumtree specific error message and error code (from PT_RESULTCODES).

Parameters:
e - the native Exception to wrap
message - the error message associated with this error
code - the error code associated with this error