akka.grpc.GrpcServiceException.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2018-2019 Lightbend Inc.
*/
package akka.grpc
import io.grpc.Status
class GrpcServiceException(val status: Status) extends RuntimeException(status.getDescription) {
require(!status.isOk, "Use GrpcServiceException in case of failure, not as a flow control mechanism.")
}