Class TypecheckException

All Implemented Interfaces:
com.streambase.sb.util.LocatedItem, Serializable
Direct Known Subclasses:
ApplicationValidationException, DbConnectTypecheckException, Operator.PropertyTypecheckException, SchemaMismatchException, SqlTypecheckException

public class TypecheckException extends StreamBaseException
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 Details

    • TypecheckException

      public TypecheckException(String msg)
      Constructs a TypecheckException with the given message
      Parameters:
      msg - message describing this exception
    • TypecheckException

      public TypecheckException(String msg, Throwable cause)
      Constructs a TypecheckException with the given message and cause
      Parameters:
      msg - message describing this exception
      cause - the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.
    • TypecheckException

      public TypecheckException(Throwable cause)
      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

      public TypecheckException(StreamBaseException cause)
      Constructor
      Parameters:
      cause - cause
    • TypecheckException

      public TypecheckException(com.streambase.sb.util.LocatedItem loc, String msg, Throwable cause)
      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 reporting
      msg - message describing this exception
      cause - the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.
      Since:
      6.5
    • TypecheckException

      public TypecheckException(com.streambase.sb.util.LocatedItem loc, String msg)
      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 reporting
      msg - message describing this exception
      Since:
      6.5
    • TypecheckException

      public 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()). Operators should first consider using Operator.PropertyTypecheckException with its (String, Throwable) constructor instead.
      Parameters:
      loc - location scoping this exception, used to provide better error reporting
      cause - the cause of this exception. May be null, indicating that the cause is nonexistent or unknown.
      Since:
      6.5