code: public static AlluxioStatusException fromAlluxioException(AlluxioException ae) {
      try {
        throw ae;
      } catch (AccessControlException e) {
        return new PermissionDeniedException(e);
      } catch (BlockAlreadyExistsException | FileAlreadyCompletedException
          | FileAlreadyExistsException e) {
        return new AlreadyExistsException(e);
      } catch (BlockDoesNotExistException | FileDoesNotExistException e) {
        return new NotFoundException(e);
      } catch (BlockInfoException | InvalidFileSizeException | InvalidPathException e) {
        return new InvalidArgumentException(e);
      } catch (ConnectionFailedException | FailedToCheckpointException
          | UfsBlockAccessTokenUnavailableException e) {
        return new UnavailableException(e);
      } catch (DependencyDoesNotExistException | DirectoryNotEmptyException
          | InvalidWorkerStateException e) {
        return new FailedPreconditionException(e);
      } catch (WorkerOutOfSpaceException e) {
        return new ResourceExhaustedException(e);
      } catch (AlluxioException e) {
        return new UnknownException(e);
      }
    }
docs: Converts checked Alluxio exceptions to Alluxio status exceptions.
  
  @param ae the Alluxio exception to convert
  @return the converted {@link AlluxioStatusException}