Package org.hyperonline.hyperlib.port
Class DuplicatePortException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.hyperonline.hyperlib.port.DuplicatePortException
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicatePortException extends java.lang.ExceptionAn exception thrown when you attempt to assign two pieces of hardware to the same port in the robot map.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicatePortException(int port, Port.Type type, java.lang.String first, java.lang.String second)Construct a newDuplicatePortExceptionwith the given parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFirst()java.lang.StringgetMessage()intgetNumber()java.lang.StringgetSecond()Port.TypegetType()
-
-
-
Constructor Detail
-
DuplicatePortException
public DuplicatePortException(int port, Port.Type type, java.lang.String first, java.lang.String second)Construct a newDuplicatePortExceptionwith the given parameters- Parameters:
port- The port number which was duplicatedtype- The type of port which was duplicatedfirst- The name of the first use of this portsecond- The name of the second use of this port
-
-
Method Detail
-
getNumber
public int getNumber()
-
getType
public Port.Type getType()
-
getFirst
public java.lang.String getFirst()
-
getSecond
public java.lang.String getSecond()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-