oracle.ultrasearch.crawler
Class AgentException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--oracle.ultrasearch.crawler.AgentException
- public class AgentException
- extends java.lang.Exception
This encapsulates information about a data source agent-specific error.
- See Also:
- Serialized Form
Constructor Summary |
AgentException(java.lang.Exception errorException)
Constructs an AgentExcception from an exception. |
AgentException(int severity, java.lang.String message)
Constructs an AgentException from an error code. |
AgentException(java.lang.String message)
Constructs an AgentException from a string |
Method Summary |
java.lang.String |
getErrorString()
returns the error message |
boolean |
isFatalException()
Checks if the exception is a fatal exception |
java.lang.String |
toString()
returns the error message |
java.lang.String |
toString(java.lang.String arg1)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNDEFINED
public static final int UNDEFINED
FATAL
public static final int FATAL
WARNING
public static final int WARNING
AgentException
public AgentException(java.lang.String message)
- Constructs an AgentException from a string
-
- Parameters:
message
- is the exception message
AgentException
public AgentException(int severity,
java.lang.String message)
- Constructs an AgentException from an error code.
-
- Parameters:
severity
- severity of the exception: FATAL or WARNING
message
- the exception message
AgentException
public AgentException(java.lang.Exception errorException)
- Constructs an AgentExcception from an exception. This is useful when an agent needs to return error/failure information that is a direct result of an exception.
-
- Parameters:
errorException
- the cause of the agent exception
getErrorString
public java.lang.String getErrorString()
- returns the error message
toString
public java.lang.String toString()
- returns the error message
-
- Overrides:
- toString in class java.lang.Throwable
toString
public java.lang.String toString(java.lang.String arg1)
isFatalException
public boolean isFatalException()
- Checks if the exception is a fatal exception
-
- Returns:
- true if the exception is fatal, false otherwise.