Package growthbook.sdk.java.exception
Class InvalidOptionsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
growthbook.sdk.java.exception.InvalidOptionsException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionInvalidOptionsException(String message) Creates an exception for a single validation problem, using the message as the only violation.InvalidOptionsException(String message, List<String> violations) -
Method Summary
Modifier and TypeMethodDescriptionThe individual, human-readable validation problems that were detected.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidOptionsException
-
InvalidOptionsException
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
The individual, human-readable validation problems that were detected.
-