public class ValidateUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidateUtil.ValidateException
A exception that is thrown when the vector validation fails.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
validateOrThrow(boolean expression,
String errorMessage)
Validate the expression.
|
static void |
validateOrThrow(boolean expression,
String errorMessage,
Object... args)
Validate the expression.
|
public static void validateOrThrow(boolean expression,
String errorMessage)
expression - the expression to validate.errorMessage - the error message.ValidateUtil.ValidateException - if the expression evaluates to false.public static void validateOrThrow(boolean expression,
String errorMessage,
Object... args)
expression - the expression to validate.errorMessage - the error message template.args - the error message arguments.ValidateUtil.ValidateException - if the expression evaluates to false.Copyright © 2024 The Apache Software Foundation. All rights reserved.