org.wurbelizer
Class SourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.wurbelizer.SourceException
All Implemented Interfaces:
Serializable

public class SourceException
extends Exception

Thrown whenever scanning of the sourcefile failed

Author:
harald
See Also:
Serialized Form

Constructor Summary
SourceException(SourceDocument doc, String message)
          Constructs an SourceException with the specified detail message.
SourceException(SourceElement elem, String message)
          Constructs an SourceException with the specified detail message.
 
Method Summary
 String getMessage()
          Returns the detail message string of this throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceException

public SourceException(SourceElement elem,
                       String message)
Constructs an SourceException with the specified detail message.

Parameters:
elem - the SourceElement containing the error, null if unknown.
message - the detail message

SourceException

public SourceException(SourceDocument doc,
                       String message)
Constructs an SourceException with the specified detail message.

Parameters:
doc - the SourceDocument containing the error, null if unknown.
message - the detail message
Method Detail

getMessage

public String getMessage()
Returns the detail message string of this throwable.

Overrides:
getMessage in class Throwable
Returns:
the detail message string of this Throwable instance (which may be null).


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de