Class InputTableValidationException

All Implemented Interfaces:
Serializable

public class InputTableValidationException extends UncheckedDeephavenException
Thrown when an InputTableUpdater detects an invalid modification.

If an InputTableUpdater detects an invalid modification, by throwing this Exception a detailed error message can be passed back to the gRPC client that initiated the operation. Using a list of structured errors, the client can indicate to the user which of the cells (if known) were invalid.

See Also:
  • Constructor Details

    • InputTableValidationException

      public InputTableValidationException(String message)
      Create an InputTableValidationException with the given message.

      No structured errors are supplied.

      Parameters:
      message - the error message
    • InputTableValidationException

      public InputTableValidationException(String message, List<InputTableValidationException.StructuredError> errors)
      Create an InputTableValidationException with the given message.
      Parameters:
      message - the error message
      errors - the structured errors for reporting to callers
    • InputTableValidationException

      public InputTableValidationException(List<InputTableValidationException.StructuredError> errors)
      Create an InputTableValidationException with the given errors.

      The exception message is generated from the list of errors, attempting to provide a user-actionable summary for callers that do not interpret structured errors.

      Parameters:
      errors - the structured errors for reporting to callers
  • Method Details