Package com.streambase.sb.operator
Class Operator.PropertyTypecheckException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.streambase.sb.StreamBaseException
-
- com.streambase.sb.operator.TypecheckException
-
- com.streambase.sb.operator.Operator.PropertyTypecheckException
-
- All Implemented Interfaces:
LocatedItem
,Serializable
- Enclosing class:
- Operator
public final class Operator.PropertyTypecheckException extends TypecheckException
A typecheck exception associated with an Operator property (or parameter) by name. Use this instead ofTypecheckException
when throwing fromOperator.typecheck()
to allow Studio to decorate the error message alongside the UI widget corresponding to the property.For all constructors, the first String argument is the Operator's property name (as declared by the Operator's
BeanInfo
)- Since:
- 6.5 initial release
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyTypecheckException(String property, String msg)
Equivalent toTypecheckException(LocatedItem, String)
usingOperator.getLocation(String)
against the givenproperty
as the exception location.PropertyTypecheckException(String property, String msg, Throwable cause)
Equivalent toTypecheckException(LocatedItem, String, Throwable)
usingOperator.getLocation(String)
against the givenproperty
as the exception location.PropertyTypecheckException(String property, Throwable cause)
Equivalent toTypecheckException(LocatedItem, Throwable)
usingOperator.getLocation(String)
against the givenproperty
as the exception location.
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
PropertyTypecheckException
public PropertyTypecheckException(String property, String msg)
Equivalent toTypecheckException(LocatedItem, String)
usingOperator.getLocation(String)
against the givenproperty
as the exception location.- Parameters:
property
- Operator property name associated with this exceptionmsg
- message describing this exception- See Also:
Operator.PropertyTypecheckException
-
PropertyTypecheckException
public PropertyTypecheckException(String property, Throwable cause)
Equivalent toTypecheckException(LocatedItem, Throwable)
usingOperator.getLocation(String)
against the givenproperty
as the exception location.- Parameters:
property
- Operator property name associated with this exceptioncause
- the underlying cause, as an exception, for this exception- See Also:
Operator.PropertyTypecheckException
-
PropertyTypecheckException
public PropertyTypecheckException(String property, String msg, Throwable cause)
Equivalent toTypecheckException(LocatedItem, String, Throwable)
usingOperator.getLocation(String)
against the givenproperty
as the exception location.- Parameters:
property
- Operator property name associated with this exceptionmsg
- message describing this exceptioncause
- underlying exception- See Also:
Operator.PropertyTypecheckException
-
-