org.autopipes
Class IllegalDrawingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.autopipes.IllegalDrawingException
All Implemented Interfaces:
java.io.Serializable

public class IllegalDrawingException
extends java.lang.Exception

Exception class used to report violation of hydraulic drawing conventions.

See Also:
Serialized Form

Constructor Summary
IllegalDrawingException(java.lang.String msg)
          Calls parent constructor.
IllegalDrawingException(java.lang.String msg, CtPoint location)
          Creates exception providing error location in the drawing.
 
Method Summary
 java.lang.String getMessage()
          
 
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

IllegalDrawingException

public IllegalDrawingException(java.lang.String msg)
Calls parent constructor.

Parameters:
msg - the error text

IllegalDrawingException

public IllegalDrawingException(java.lang.String msg,
                               CtPoint location)
Creates exception providing error location in the drawing.

Parameters:
msg - the error text
location - the error location
Method Detail

getMessage

public java.lang.String getMessage()

Overrides:
getMessage in class java.lang.Throwable