Class AlluxioRuntimeException

    • Constructor Summary

      Constructors 
      Constructor Description
      AlluxioRuntimeException​(io.grpc.Status status, java.lang.String message, java.lang.Throwable cause, alluxio.grpc.ErrorType errorType, boolean retryable, com.google.protobuf.Any... details)  
    • Constructor Detail

      • AlluxioRuntimeException

        public AlluxioRuntimeException​(io.grpc.Status status,
                                       java.lang.String message,
                                       @Nullable
                                       java.lang.Throwable cause,
                                       alluxio.grpc.ErrorType errorType,
                                       boolean retryable,
                                       @Nullable
                                       com.google.protobuf.Any... details)
        Parameters:
        status - the grpc status code for this exception
        message - the error message
        cause - the exception
        errorType - error type
        retryable - client can retry or not
        details - the additional information needed
    • Method Detail

      • getStatus

        public io.grpc.Status getStatus()
        Returns:
        grpc status
      • isRetryable

        public boolean isRetryable()
        Returns:
        can be retried or not
      • toGrpcStatusException

        public io.grpc.StatusException toGrpcStatusException()
        Returns:
        a gRPC status exception representation of this exception
      • toGrpcStatusRuntimeException

        public io.grpc.StatusRuntimeException toGrpcStatusRuntimeException()
        Returns:
        a gRPC status runtime exception representation of this exception
      • from

        public static AlluxioRuntimeException from​(java.lang.Throwable t)
        Converts an arbitrary throwable to an Alluxio runtime exception.
        Parameters:
        t - exception
        Returns:
        alluxio runtime exception
      • from

        public static AlluxioRuntimeException from​(java.lang.RuntimeException t)
        Converts an arbitrary RuntimeException to an Alluxio runtime exception.
        Parameters:
        t - exception
        Returns:
        alluxio runtime exception
      • from

        public static AlluxioRuntimeException from​(java.io.IOException ioe)
        Converts an IOException to a corresponding runtime exception.
        Parameters:
        ioe - the IO exception to convert
        Returns:
        the corresponding status exception
      • getMessage

        @Nullable
        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable