gitlab.com/evatix-go/core@v1.3.55/coredata/coreapi/InvalidGenericResponseResult.go (about)

     1  package coreapi
     2  
     3  import "gitlab.com/evatix-go/core/constants"
     4  
     5  func InvalidGenericResponseResult(attribute *ResponseAttribute) *GenericResponseResult {
     6  	if attribute == nil {
     7  		return &GenericResponseResult{
     8  			Attribute: InvalidResponseAttribute(constants.EmptyString),
     9  			Response:  nil,
    10  		}
    11  	}
    12  
    13  	return &GenericResponseResult{
    14  		Attribute: attribute,
    15  		Response:  nil,
    16  	}
    17  }