// GetErrorResponseComponents returns the error fields from an xml error response body
GetErrorResponseComponents returns the error fields from an xml error response body
// GetErrorResponseComponents returns the error fields from an xml error response body
func GetErrorResponseComponents(r io.Reader) (ErrorComponents, error) {
	var errComponents ErrorComponents
	if err := xml.NewDecoder(r).Decode(&errComponents); err != nil && err != io.EOF {
		return ErrorComponents{}, fmt.Errorf("error while deserializing xml error response : %w", err)
	}
	return errComponents, nil
}
func GetErrorResponseComponents ( r io . Reader ) ( ErrorComponents , error ) { var errComponents ErrorComponents if err := xml . NewDecoder ( r ) . Decode ( & errComponents ) ; err != nil && err != io . EOF { return ErrorComponents { } , fmt . Errorf ( " " , err ) } return errComponents , nil }
GetErrorResponseComponents returns the error fields from an xml error response body
GetErrorResponseComponents returns the error fields from an xml error response body