|  | @@ -19,7 +19,7 @@
 | 
	
		
			
				|  |  |  #ifndef GRPCPP_SUPPORT_ERROR_DETAILS_H
 | 
	
		
			
				|  |  |  #define GRPCPP_SUPPORT_ERROR_DETAILS_H
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -#include <grpcpp/support/error_details_impl.h>
 | 
	
		
			
				|  |  | +#include <grpcpp/support/status.h>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  namespace google {
 | 
	
		
			
				|  |  |  namespace rpc {
 | 
	
	
		
			
				|  | @@ -29,15 +29,19 @@ class Status;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  namespace grpc {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -static inline Status ExtractErrorDetails(const Status& from,
 | 
	
		
			
				|  |  | -                                         ::google::rpc::Status* to) {
 | 
	
		
			
				|  |  | -  return ::grpc_impl::ExtractErrorDetails(from, to);
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -static inline Status SetErrorDetails(const ::google::rpc::Status& from,
 | 
	
		
			
				|  |  | -                                     Status* to) {
 | 
	
		
			
				|  |  | -  return ::grpc_impl::SetErrorDetails(from, to);
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +/// Map a \a grpc::Status to a \a google::rpc::Status.
 | 
	
		
			
				|  |  | +/// The given \a to object will be cleared.
 | 
	
		
			
				|  |  | +/// On success, returns status with OK.
 | 
	
		
			
				|  |  | +/// Returns status with \a INVALID_ARGUMENT, if failed to deserialize.
 | 
	
		
			
				|  |  | +/// Returns status with \a FAILED_PRECONDITION, if \a to is nullptr.
 | 
	
		
			
				|  |  | +grpc::Status ExtractErrorDetails(const grpc::Status& from,
 | 
	
		
			
				|  |  | +                                 ::google::rpc::Status* to);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/// Map \a google::rpc::Status to a \a grpc::Status.
 | 
	
		
			
				|  |  | +/// Returns OK on success.
 | 
	
		
			
				|  |  | +/// Returns status with \a FAILED_PRECONDITION if \a to is nullptr.
 | 
	
		
			
				|  |  | +grpc::Status SetErrorDetails(const ::google::rpc::Status& from,
 | 
	
		
			
				|  |  | +                             grpc::Status* to);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }  // namespace grpc
 | 
	
		
			
				|  |  |  
 |