org.eclipse.jdt.internal.formatter.align
Class AlignmentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.jdt.internal.formatter.align.AlignmentException
All Implemented Interfaces:
java.io.Serializable

public class AlignmentException
extends java.lang.RuntimeException

Exception used to backtrack and break available alignments When the exception is thrown, it is assumed that some alignment will be changed.

Since:
2.1
See Also:
Serialized Form

Field Summary
static int ALIGN_TOO_SMALL
           
static int LINE_TOO_LONG
           
 int relativeDepth
           
 
Constructor Summary
AlignmentException(int reason, int relativeDepth)
           
AlignmentException(int reason, int value, int relativeDepth)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINE_TOO_LONG

public static final int LINE_TOO_LONG
See Also:
Constant Field Values

ALIGN_TOO_SMALL

public static final int ALIGN_TOO_SMALL
See Also:
Constant Field Values

relativeDepth

public int relativeDepth
Constructor Detail

AlignmentException

public AlignmentException(int reason,
                          int relativeDepth)

AlignmentException

public AlignmentException(int reason,
                          int value,
                          int relativeDepth)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable