Package org.hyperonline.hyperlib.port
Class InvalidPortException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.hyperonline.hyperlib.port.InvalidPortException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidPortException extends java.lang.Exception
An exception thrown when you attempt to assign hardware to a port that does not exist in the robot map.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPortException(int number, Port.Type type, java.lang.String name)
Construct a newInvalidPortException
with the given properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
java.lang.String
getName()
int
getNumber()
Port.Type
getType()
-
-
-
Constructor Detail
-
InvalidPortException
public InvalidPortException(int number, Port.Type type, java.lang.String name)
Construct a newInvalidPortException
with the given properties.- Parameters:
number
- The number of the port which is invalidtype
- The type of port which is invalidname
- The name of the use of the invalid port
-
-
Method Detail
-
getNumber
public int getNumber()
-
getType
public Port.Type getType()
-
getName
public java.lang.String getName()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-