Class ApiPreconditions
- java.lang.Object
-
- com.atlassian.confluence.api.service.exceptions.ApiPreconditions
-
public final class ApiPreconditions extends Object
-
-
Constructor Summary
Constructors Constructor Description ApiPreconditions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkPermission(boolean condition, String reason)
static void
checkRequestArgs(boolean condition, String reason)
-
-
-
Method Detail
-
checkRequestArgs
public static void checkRequestArgs(boolean condition, String reason)
- Throws:
BadRequestException
- if condition is not satisfied
-
checkPermission
public static void checkPermission(boolean condition, String reason)
- Throws:
PermissionException
- if condition is not satisfied
-
-