Class NoSuchVariableException

All Implemented Interfaces:
Serializable

public class NoSuchVariableException extends CamelExchangeException
An exception caused when a mandatory variable is not available
Since:
4.4
See Also:
  • Constructor Details

    • NoSuchVariableException

      public NoSuchVariableException(Exchange exchange, String variableName)
      Parameters:
      exchange - the exchange that caused the error
      variableName - the name of the missing variable
    • NoSuchVariableException

      public NoSuchVariableException(Exchange exchange, String variableName, Class<?> type)
      Parameters:
      exchange - the exchange that caused the error
      variableName - the name of the missing variable
      type - the expected variable type
  • Method Details

    • getVariableName

      public String getVariableName()
    • getType

      public @Nullable Class<?> getType()