Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.1.0.0)

E17597-02


oracle.search.admin.api.ws.client
Class AdminAPIRuntimeFault_Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.search.admin.api.ws.client.AdminAPIRuntimeFault_Exception

All Implemented Interfaces:
Serializable

public class AdminAPIRuntimeFault_Exception
extends Exception

An exception for unexpected errors. For example, if the search repository cannot be accessed, then an AdminAPIRuntimeFault_Exception is raised.

Detailed information on the error is accessed through the associated Fault:

   ...
   catch (AdminAPIRuntimeFault_Exception e)
   {
     AdminAPIRuntimeFault faultInfo = e.getFaultInfo();
     int errorCode = faultInfo.getErrorCode();
     String message = faultInfo.getMessage();
     System.out.println( "Caught unexpected error: " + errorCode + " - " + message );
   }
 

Errors represented by an AdminAPIRuntimeFault_Exception are typically caused by an unexpected exception during runtime, such as a java.lang.RuntimeException. Information on the cause should be accessed through the associated Fault instead of the getCause method in java.lang.Exception.

See Also:
AdminAPIRuntimeFault, Serialized Form

Method Summary
 AdminAPIRuntimeFault getFaultInfo()
          Returns the associated Fault.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

getFaultInfo

public AdminAPIRuntimeFault getFaultInfo()
Returns the associated Fault. The Fault contains more detailed information, such as the error code and error message, and corresponds to the soapenv:Fault element in the SOAP message.
Returns:
The associated Fault.

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.1.0.0)

E17597-02


Copyright © 2006, 2011, Oracle and/or its affiliates. All rights reserved.