com.yahoo.search
Class SearchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.yahoo.search.SearchException
All Implemented Interfaces:
Serializable

public class SearchException
extends Exception

Exception class indicating a search failure caused by either a client error (invalid or missing argument) or a service error.

Author:
Ryan Kennedy
See Also:
Serialized Form

Constructor Summary
SearchException(String message)
          Constructs a search exception with a message.
SearchException(String message, Throwable cause)
          Constructs a search exception with a message and an underlying cause.
 
Method Summary
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchException

public SearchException(String message)
Constructs a search exception with a message.

Parameters:
message - The message to wrap inside the exception.

SearchException

public SearchException(String message,
                       Throwable cause)
Constructs a search exception with a message and an underlying cause.

Parameters:
message - The message to wrap inside the exception.
cause - The underlying cause of the search exception.
Method Detail

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable