Class InvalidOptionsException

All Implemented Interfaces:
Serializable

public class InvalidOptionsException extends IllegalArgumentException
Thrown when GrowthBook options fail start-up validation.

Extends IllegalArgumentException so existing callers that catch invalid-argument errors keep working, while exposing the full list of problems via getViolations() for callers that want structured access (diagnostics, health checks, structured logging).

See Also:
  • Constructor Details

    • InvalidOptionsException

      public InvalidOptionsException(String message, List<String> violations)
    • InvalidOptionsException

      public InvalidOptionsException(String message)
      Creates an exception for a single validation problem, using the message as the only violation.
      Parameters:
      message - the problem description, used both as the exception message and the sole violation
  • Method Details

    • getViolations

      public List<String> getViolations()
      The individual, human-readable validation problems that were detected.