Class DuplicatePortException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicatePortException
    extends java.lang.Exception
    An exception thrown when you attempt to assign two pieces of hardware to the same port in the robot map.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFirst()  
      java.lang.String getMessage()
      int getNumber()  
      java.lang.String getSecond()  
      Port.Type getType()  
      • Methods inherited from class java.lang.Throwable

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

      • DuplicatePortException

        public DuplicatePortException​(int port,
                                      Port.Type type,
                                      java.lang.String first,
                                      java.lang.String second)
        Construct a new DuplicatePortException with the given parameters
        Parameters:
        port - The port number which was duplicated
        type - The type of port which was duplicated
        first - The name of the first use of this port
        second - The name of the second use of this port
    • Method Detail

      • getNumber

        public int getNumber()
      • getFirst

        public java.lang.String getFirst()
      • getSecond

        public java.lang.String getSecond()
      • getMessage

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