org.kahina.core.breakpoint
Class PatternFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.kahina.core.breakpoint.PatternFormatException
All Implemented Interfaces:
Serializable

public class PatternFormatException
extends Exception

An exception type thrown when validating the values of a TreeNodePattern.

This type of exception is caught by the breakpoint editor in order to provide hints to the user.

See Also:
Serialized Form

Constructor Summary
PatternFormatException(String desiredType, String badString)
          Class constructor specifying desired type and value of the offending string.
 
Method Summary
 String getMessage()
          Returns the error message as displayed e.g.
 
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

PatternFormatException

public PatternFormatException(String desiredType,
                              String badString)
Class constructor specifying desired type and value of the offending string.

Parameters:
desiredType - the intended type of the offending string
badString - the value of the offending string
Method Detail

getMessage

public String getMessage()
Returns the error message as displayed e.g. in the breakpoint editor.

Overrides:
getMessage in class Throwable