Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 1 (11.1.2)

E21908-02

oracle.ecsf
Class SearchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.ecsf.SearchException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SearchSecurityException

public class SearchException
extends java.lang.Exception

Exception thrown for all search related exception. This exception is thrown for general search exceptions.

See Also:
Serialized Form

Constructor Summary
SearchException(java.lang.String msg)
           
SearchException(java.lang.String errorCode, java.lang.String[] params, java.lang.Throwable throwable)
          Constructs an exception from an exception, an error code and an array of parameters values
SearchException(java.lang.String message, java.lang.Throwable throwable)
           
SearchException(java.lang.Throwable throwable)
           
 
Method Summary
 java.lang.String getErrorCode()
           
 java.lang.String getLocalizedMessage()
           
 java.lang.String[] getParameters()
          Retruns parameters for th eerror message.
 void setErrorCode(java.lang.String errorCode)
           
 void setParameters(java.lang.String[] params)
          Assign parameters for the message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchException

public SearchException(java.lang.String msg)

SearchException

public SearchException(java.lang.Throwable throwable)

SearchException

public SearchException(java.lang.String message,
                       java.lang.Throwable throwable)

SearchException

public SearchException(java.lang.String errorCode,
                       java.lang.String[] params,
                       java.lang.Throwable throwable)
Constructs an exception from an exception, an error code and an array of parameters values

Parameters:
throwable - the causing exception.
Method Detail

getErrorCode

public java.lang.String getErrorCode()

setErrorCode

public void setErrorCode(java.lang.String errorCode)
Parameters:
errorCode -

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

setParameters

public void setParameters(java.lang.String[] params)
Assign parameters for the message. Parameters are to constuct error message using a template named by error code.

Parameters:
params - array of string values.

getParameters

public java.lang.String[] getParameters()
Retruns parameters for th eerror message.

Returns:
parameters.

Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 1 (11.1.2)

E21908-02

Copyright © 2011 Oracle. All rights reserved.