Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


oracle.search.sdk.crawler
Class DocumentServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.search.sdk.crawler.DocumentServiceException

All Implemented Interfaces:
Serializable

public class DocumentServiceException
extends Exception
See Also:
Serialized Form

Field Summary
static int FATAL
           
static int SEVERE
           
static int UNDEFINED
           
static int WARNING
           

 

Constructor Summary
DocumentServiceException(Exception errorException)
          Constructs a fatal service exception from an exception.
DocumentServiceException(int severity, Exception errorException)
          Constructs a service exception from an exception and assigns a severity to it.
DocumentServiceException(int severity, String message)
          Constructs a service exception from an error code.
DocumentServiceException(String message)
          Constructs a service exception from a String.

 

Method Summary
 String getErrorString()
          Returns the error message.
 int getSeverity()
          return severity
 boolean isFatalException()
          Checks if the exception is a fatal exception.
 boolean isSevereException()
          Checks if the exception is a severe exception.

 

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

 

Field Detail

UNDEFINED

public static int UNDEFINED

FATAL

public static int FATAL

SEVERE

public static int SEVERE

WARNING

public static int WARNING

Constructor Detail

DocumentServiceException

public DocumentServiceException(Exception errorException)
Constructs a fatal service exception from an exception.

DocumentServiceException

public DocumentServiceException(int severity,
                                String message)
Constructs a service exception from an error code.

DocumentServiceException

public DocumentServiceException(int severity,
                                Exception errorException)
Constructs a service exception from an exception and assigns a severity to it.

DocumentServiceException

public DocumentServiceException(String message)
Constructs a service exception from a String.

Method Detail

isFatalException

public boolean isFatalException()
Checks if the exception is a fatal exception.
Returns:
A value of true if the exception is fatal, or false otherwise.

isSevereException

public boolean isSevereException()
Checks if the exception is a severe exception.
Returns:
true if the exception is severe

getSeverity

public int getSeverity()
return severity
Returns:
The severity code: should be FATAL, WARNING, SEVERE, or UNDEFINED.

getErrorString

public String getErrorString()
Returns the error message.
Returns:
A textual description of the error.

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


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