Package com.streambase.sb.operator
Class TypecheckException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.streambase.sb.StreamBaseException
com.streambase.sb.operator.TypecheckException
- All Implemented Interfaces:
com.streambase.sb.util.LocatedItem
,Serializable
- Direct Known Subclasses:
ApplicationValidationException
,DbConnectTypecheckException
,Operator.PropertyTypecheckException
,SchemaMismatchException
,SqlTypecheckException
May be thrown when an error occurs during an Operator's typecheck() method.
Usually means a parameter or input schema is incorrect.
Since 6.5, Operator classes may locate typecheck exceptions thrown from an Operator by using Operator.PropertyTypecheckException instead of this class, allowing StreamBase Studio to place the error message alongside that property's UI widget.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructorTypecheckException
(com.streambase.sb.util.LocatedItem loc, String msg) Constructs a located TypecheckException with the given message.TypecheckException
(com.streambase.sb.util.LocatedItem loc, String msg, Throwable cause) Constructs a located TypecheckException with the given message and cause.TypecheckException
(com.streambase.sb.util.LocatedItem loc, Throwable cause) Constructs a TypecheckException with the given cause and a message of (cause==null ? null : cause.toString()).TypecheckException
(String msg) Constructs a TypecheckException with the given messageTypecheckException
(String msg, Throwable cause) Constructs a TypecheckException with the given message and causeTypecheckException
(Throwable cause) Constructs a TypecheckException with the given cause and a message of (cause==null ? null : cause.toString()) -
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 Details
-
TypecheckException
Constructs a TypecheckException with the given message- Parameters:
msg
- message describing this exception
-
TypecheckException
Constructs a TypecheckException with the given message and cause- Parameters:
msg
- message describing this exceptioncause
- the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.
-
TypecheckException
Constructs a TypecheckException with the given cause and a message of (cause==null ? null : cause.toString())- Parameters:
cause
- the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.
-
TypecheckException
Constructor- Parameters:
cause
- cause
-
TypecheckException
Constructs a located TypecheckException with the given message and cause. Operators should first consider using Operator.PropertyTypecheckException with its (String, String, Throwable) constructor instead.- Parameters:
loc
- location scoping this exception, used to provide better error reportingmsg
- message describing this exceptioncause
- the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.- Since:
- 6.5
-
TypecheckException
Constructs a located TypecheckException with the given message. Operators should first consider using Operator.PropertyTypecheckException with its (String, String) constructor instead.- Parameters:
loc
- location scoping this exception, used to provide better error reportingmsg
- message describing this exception- Since:
- 6.5
-
TypecheckException
Constructs a TypecheckException with the given cause and a message of (cause==null ? null : cause.toString()). Operators should first consider using Operator.PropertyTypecheckException with its (String, Throwable) constructor instead.- Parameters:
loc
- location scoping this exception, used to provide better error reportingcause
- the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.- Since:
- 6.5
-