org.prorefactor.refactor
Class RefactorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.prorefactor.refactor.RefactorException
All Implemented Interfaces:
java.io.Serializable

public class RefactorException
extends java.lang.Exception

Exception to be thrown only by the refactoring libraries, especially ScanLib, Refactor, etc. These exceptions thrown from the refactoring libraries are intended to help the programmer (me!) more easily track down mistakes made when writing new refactorings.

See Also:
Serialized Form

Constructor Summary
RefactorException(java.io.File file, int line, int col, java.lang.String message)
          Create an exception where we don't have a file index.
RefactorException(int[] pos, java.lang.String inMessage)
          Create an exception with "filename:line:col message" as the text.
RefactorException(int node, java.lang.String inMessage)
          Create an exception with "filename:line:col message" as the text.
RefactorException(java.lang.String message)
           
RefactorException(java.lang.String message, java.lang.Throwable cause)
           
RefactorException(java.lang.Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

RefactorException

public RefactorException(java.lang.String message)

RefactorException

public RefactorException(java.lang.Throwable cause)

RefactorException

public RefactorException(java.lang.String message,
                         java.lang.Throwable cause)

RefactorException

public RefactorException(int node,
                         java.lang.String inMessage)
Create an exception with "filename:line:col message" as the text.

Parameters:
h - A handle to the node (or scanner token) to get file:line:col from.
message -

RefactorException

public RefactorException(int[] pos,
                         java.lang.String inMessage)
Create an exception with "filename:line:col message" as the text.

Parameters:
pos - An int[3] file/line/column position
message -

RefactorException

public RefactorException(java.io.File file,
                         int line,
                         int col,
                         java.lang.String message)
Create an exception where we don't have a file index.



Copyright © 2008 Joanju Software. All Rights Reserved.