Class PathException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PathException
    extends java.lang.Exception
    An Exception thrown if there is a problem in the Path class.
    Author:
    Kim Rutherford
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PathException​(java.lang.String message, java.lang.String pathString)
      Create a new PathException with the given message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPathString()
      Return the path String that was passed to the constructor.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • PathException

        public PathException​(java.lang.String message,
                             java.lang.String pathString)
        Create a new PathException with the given message.
        Parameters:
        message - the message
        pathString - the String representation of the Path that generated this exception - used when the Path constructor is passed a string that isn't a valid path
    • Method Detail

      • getPathString

        public java.lang.String getPathString()
        Return the path String that was passed to the constructor.
        Returns:
        the path string