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.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
-
-
Constructor Summary
Constructors Constructor Description DuplicatePortException(int port, Port.Type type, java.lang.String first, java.lang.String second)
Construct a newDuplicatePortException
with the given parameters
-
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()
-
-
-
Constructor Detail
-
DuplicatePortException
public DuplicatePortException(int port, Port.Type type, java.lang.String first, java.lang.String second)
Construct a newDuplicatePortException
with 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:
getMessage
in classjava.lang.Throwable
-
-