Class ApiPreconditions


  • public final class ApiPreconditions
    extends Object
    • Constructor Detail

      • ApiPreconditions

        public ApiPreconditions()
    • 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