public final class ApiPreconditions extends Object
Constructor and Description |
---|
ApiPreconditions() |
Modifier and Type | Method and Description |
---|---|
static void |
checkPermission(boolean condition,
String reason) |
static void |
checkRequestArgs(boolean condition,
String reason) |
public static void checkRequestArgs(boolean condition, String reason)
BadRequestException
- if condition is not satisfiedpublic static void checkPermission(boolean condition, String reason)
PermissionException
- if condition is not satisfiedCopyright © 2003–2017 Atlassian. All rights reserved.