com.togethersoft.openapi.sci
Class SciGenericFactoryException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.togethersoft.openapi.sci.SciGenericFactoryException

public class SciGenericFactoryException
extends Exception

This exception is thrown by the SciGenericFactory to indicate that
its methods can't create a new object.

Author:
TogetherSoft
Since: Together 3.0

Field Summary
 private StringmyMessage
           
 private intmyOffset
           
 private StringmySourceText
           

Constructor Summary
SciGenericFactoryException(String sourceText, int offset, String message)
           

Method Summary
 StringgetMessage()
          Returns a message associated with this exception.
 intgetOffset()
          Returns an integer number indicating the position in the source code framgent where
the exception arose.
 StringgetSourceText()
          Returns a string containing the part of the source code that caused this exception.
 StringtoString()
          Returns a string describing this exception

Methods inherited from class java.lang.Throwable
getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, fillInStackTrace

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

Field Detail

myMessage

private String myMessage

myOffset

private int myOffset

mySourceText

private String mySourceText
Constructor Detail

SciGenericFactoryException

public SciGenericFactoryException(String sourceText, int offset, String message)
Method Detail

getMessage

public String getMessage()
Returns a message associated with this exception.
Returns: a message associated with this exception

getOffset

public int getOffset()
Returns an integer number indicating the position in the source code framgent where
the exception arose.
This position corresponds to the string returned by the getSourceText method.
See Also:
getSourceText()

getSourceText

public String getSourceText()
Returns a string containing the part of the source code that caused this exception.
It is possible to get a position in that string where this exception arose
using the getOffset method.
Returns: a string containing the part of the source code that caused this exception
See Also:
getOffset()

toString

public String toString()
Returns a string describing this exception
Returns: a string describing this exception

Association Links

to Class java.lang.String

to Class java.lang.String