Skip navigation links

Oracle Secure Enterprise Search Java API Reference
10g Release 1 (10.1.8.2)

E10465-01


oracle.search.sdk.crawler
Class DocumentServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.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 an fatal service exception from an exception.
DocumentServiceException(int severity, Exception errorException)
          Constructs an service exception from an exception and assign severity to it
DocumentServiceException(int severity, String message)
          Constructs an service exception from an error code.
DocumentServiceException(String message)
          Constructs an service exception from a string

 

Method Summary
 String getErrorString()
          returns the error message
static int getMostSeverityCode(int severity1, int severity2)
          return the most severity code from severity1 and severity2
 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 an fatal service exception from an exception.

DocumentServiceException

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

DocumentServiceException

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

DocumentServiceException

public DocumentServiceException(String message)
Constructs an service exception from a string

Method Detail

isFatalException

public boolean isFatalException()
Checks if the exception is a fatal exception
Returns:
true if the exception is fatal, 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:
severity code, should be FATAL, WARNING, SEVERE, UNDEFINED

getMostSeverityCode

public static int getMostSeverityCode(int severity1,
                                      int severity2)
return the most severity code from severity1 and severity2

getErrorString

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

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
10g Release 1 (10.1.8.2)

E10465-01


Copyright © 2006, 2007, Oracle. All rights reserved.