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.ExceptionAn 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 newInvalidPortExceptionwith the given properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()java.lang.StringgetName()intgetNumber()Port.TypegetType()
-
-
-
Constructor Detail
-
InvalidPortException
public InvalidPortException(int number, Port.Type type, java.lang.String name)Construct a newInvalidPortExceptionwith 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:
getMessagein classjava.lang.Throwable
-
-