Package com.streambase.sb.operator
Class PortMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.streambase.sb.StreamBaseException
com.streambase.sb.operator.TypecheckException
com.streambase.sb.operator.PortMismatchException
- All Implemented Interfaces:
com.streambase.sb.util.LocatedItem
,Serializable
Thrown by
Operator.requireInputPortCount(int)
when the required
input port count doesn't match the actual input port count.
Do not construct objects of this class directly; use Operator.requireInputPortCount(int)
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
Input port - 0x1static final byte
Output port - 0x2 -
Constructor Summary
ConstructorsConstructorDescriptionPortMismatchException
(com.streambase.sb.util.LocatedItem loc, CharSequence componentName, byte type, int oldPorts, int desiredPorts) -
Method Summary
Modifier and TypeMethodDescriptionint
byte
Returns mismatched port type.Methods inherited from class com.streambase.sb.StreamBaseException
asXmlStringSingle, asXmlStringStrict, asXmlStringStrict, equals, getParams, hashCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
TYPE_INPUT
public static final byte TYPE_INPUTInput port - 0x1- See Also:
-
TYPE_OUTPUT
public static final byte TYPE_OUTPUTOutput port - 0x2- See Also:
-
-
Constructor Details
-
PortMismatchException
public PortMismatchException(com.streambase.sb.util.LocatedItem loc, CharSequence componentName, byte type, int oldPorts, int desiredPorts) - Parameters:
loc
- located itemcomponentName
- component nametype
- port typeoldPorts
- old portsdesiredPorts
- desired ports
-
-
Method Details
-
getDesiredPortCount
public int getDesiredPortCount()- Returns:
- the desired port count
-
getPortMismatchType
public byte getPortMismatchType()Returns mismatched port type.- Returns:
- mismatched port type
-