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 PluginException

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

All Implemented Interfaces:
Serializable

public class PluginException
extends Exception

This encapsulates information about a data source plugin-specific error.

See Also:
Serialized Form

Field Summary
static int FATAL
           
static int UNDEFINED
           
static int WARNING
           

 

Constructor Summary
PluginException(Exception errorException)
          Constructs an PluginExcception from an exception.
PluginException(int severity, String message)
          Constructs an PluginException from an error code.
PluginException(String message)
          Constructs an PluginException from a string

 

Method Summary
 String getErrorString()
          returns the error message
 boolean isFatalException()
          Checks if the exception is a fatal exception
 String toString()
          returns the error message
 String toString(String arg1)
           

 

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

 

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

 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values

FATAL

public static final int FATAL

WARNING

public static final int WARNING

Constructor Detail

PluginException

public PluginException(String message)
Constructs an PluginException from a string
Parameters:
message - is the exception message

PluginException

public PluginException(int severity,
                       String message)
Constructs an PluginException from an error code.
Parameters:
severity - severity of the exception: FATAL or WARNING
message - the exception message

PluginException

public PluginException(Exception errorException)
Constructs an PluginExcception from an exception. This is useful when an plugin needs to return error/failure information that is a direct result of an exception.
Parameters:
errorException - the cause of the plugin exception

Method Detail

getErrorString

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

toString

public String toString()
returns the error message
Overrides:
toString in class Throwable
Returns:
textual description of error

toString

public String toString(String arg1)

isFatalException

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

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.