Class MLException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExecuteException, MLLimitExceededException, MLResourceNotFoundException, MLValidationException

public class MLException extends RuntimeException
Base exception thrown from MLCommons.
See Also:
  • Constructor Details

    • MLException

      public MLException(String message)
      Constructor with error message.
      Parameters:
      message - message of the exception
    • MLException

      public MLException(Throwable cause)
      Constructor with specified cause.
      Parameters:
      cause - exception cause
    • MLException

      public MLException(String message, Throwable cause)
      Constructor with specified error message adn cause.
      Parameters:
      message - error message
      cause - exception cause
  • Method Details

    • isCountedInStats

      public boolean isCountedInStats()
      Returns if the exception should be counted in stats.
      Returns:
      true if should count the exception in stats; otherwise return false
    • countedInStats

      public MLException countedInStats(boolean countInStats)
      Set if the exception should be counted in stats.
      Parameters:
      countInStats - count the exception in stats
      Returns:
      the exception itself