TPTP 4.0.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.logging.parsers
Class LogParserException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.eclipse.hyades.logging.parsers.LogParserException
All Implemented Interfaces:
java.io.Serializable

public class LogParserException
extends java.lang.Exception

Subclass of java.lang.Exception. Parser classes in the org.eclipse.hyades.logging.parsers package throw exceptions of this class when a log cannot be parsed. A LogParserException can wrap another exception caught during the parse process.

See Also:
Serialized Form

Constructor Summary
LogParserException()
          Create a new LogParserException with no message.
LogParserException(java.lang.String message)
          Create a new LogParserException.
LogParserException(java.lang.String message, java.lang.Throwable e)
          Create a new LogParserException from an existing exception.
LogParserException(java.lang.Throwable e)
          Create a new LogParserException wrapping an existing exception.
 
Method Summary
 java.lang.Throwable getException()
          Return the embedded exception, if any.
 java.lang.String getMessage()
          Return a detail message for this exception.
 void printStackTrace()
          Override this method in the superclass in order to output the stack trace for the wrapped exception.
 void printStackTrace(java.io.PrintStream s)
          Override this method in the superclass in order to output the stack trace for the wrapped exception.
 void printStackTrace(java.io.PrintWriter s)
          Override this method in the superclass in order to output the stack trace for the wrapped exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogParserException

public LogParserException()
Create a new LogParserException with no message.


LogParserException

public LogParserException(java.lang.String message)
Create a new LogParserException.

Parameters:
message - The error or warning message.

LogParserException

public LogParserException(java.lang.Throwable e)
Create a new LogParserException wrapping an existing exception.

The existing exception will be embedded in the new one.

Parameters:
e - The exception to be wrapped in a LogParserException.

LogParserException

public LogParserException(java.lang.String message,
                          java.lang.Throwable e)
Create a new LogParserException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters:
message - The detail message.
e - The exception to be wrapped in a LogParserException.
Method Detail

getMessage

public java.lang.String getMessage()
Return a detail message for this exception.

If there is an embedded exception, and if the LogParserException has no detail message of its own, this method will return the detail message from the embedded exception.

If there is an embedded exception, and the LogParserException has a detail message of its own, this method will append the embedded exception message to the LogParserException message and return it.

Returns:
The error or warning message.

getException

public java.lang.Throwable getException()
Return the embedded exception, if any.

Returns:
The embedded exception, or null if there is none.

printStackTrace

public void printStackTrace()
Override this method in the superclass in order to output the stack trace for the wrapped exception.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Override this method in the superclass in order to output the stack trace for the wrapped exception.

Parameters:
s - The stream to which the stack trace is written

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Override this method in the superclass in order to output the stack trace for the wrapped exception.

Parameters:
s - The writer to which the stack trace is written

TPTP 4.0.0 Monitoring Tools Project
Public API Specification