Class ResponseHelper
  A utility class to read response content.
 
  
  
    Inheritance
    
    ResponseHelper
   
  
  
  Assembly: OCI.DotNetSDK.Common.dll
  Syntax
  
    public class ResponseHelper
   
  Fields
  DEFAULT_OCI_EXCEPTION_MESSAGE
  
  
  Declaration
  
    public static string DEFAULT_OCI_EXCEPTION_MESSAGE
   
  Field Value
  
  DEFAULT_OCI_EXCEPTION_SERVICE_CODE
  
  
  Declaration
  
    public static string DEFAULT_OCI_EXCEPTION_SERVICE_CODE
   
  Field Value
  
  INSTANCE_PRINCIPAL_FAILURE_CODE
  
  
  Declaration
  
    public static int INSTANCE_PRINCIPAL_FAILURE_CODE
   
  Field Value
  
  INSTANCE_PRINCIPAL_FAILURE_MESSAGE
  
  
  Declaration
  
    public static string INSTANCE_PRINCIPAL_FAILURE_MESSAGE
   
  Field Value
  
  NOT_APPLICABLE
  
  
  Declaration
  
    public static string NOT_APPLICABLE
   
  Field Value
  
  Methods
  
  HandleNonSuccessfulResponse(HttpResponseMessage, ApiDetails, string)
  HandleNonSuccessfulResponse will only be called to process responses return from service that are not 2xx.
If this happens, throw OciException.
 
  
  Declaration
  
    public static void HandleNonSuccessfulResponse(HttpResponseMessage responseMessage, ApiDetails apiDetails = null, string caller = null)
   
  Parameters
  
  
  ReadEntity<T>(HttpResponseMessage)
  Reads content from HttpResponseMessage and converts it into SDK response object.
 
  
  Declaration
  
    public static T ReadEntity<T>(HttpResponseMessage response)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | T | 
        An SDK response object. 
 | 
      
    
  
  Type Parameters